You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
From time to time, I get the "Stream timed out" error when calling $client->query($query)->read(). It really isn't a timeout issue as I'm sniffing the traffic and I can see that the communication is taking place and the client is receiving the request from RouterOS but for some reason, an exception is launched inside ResourceStream:
if(socket_get_status($this->stream)['timed_out']){
throw new StreamException('Stream timed out');
}
The text was updated successfully, but these errors were encountered:
I have the same problem. With the same code, sometimes it works, sometimes it doesn't.
My configuration looks like this:
return [
...
'attempts' => 5, // Count of attempts to establish TCP session
'delay' => 1, // Delay between attempts in seconds
'timeout' => 65, // Max timeout for instantiating connection with RouterOS
'socket_timeout' => 60, // Max timeout for read from RouterOS
'socket_blocking' => false, // Set blocking mode on a socket stream
..
]
My RouterOS version is 7.14.1 (CHR Mikrotik)
FYI, I moved to this . It worked for me. No more random stream error
Version of RouterOS
RouterOS 7.8 running on CCR2116-12G-4S+
To Reproduce
Expected behavior
From time to time, I get the "Stream timed out" error when calling $client->query($query)->read(). It really isn't a timeout issue as I'm sniffing the traffic and I can see that the communication is taking place and the client is receiving the request from RouterOS but for some reason, an exception is launched inside ResourceStream:
The text was updated successfully, but these errors were encountered: