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
Occasionally when the server is under load you will get this error. Obviously the fread is returning a blank string and you should return false if it's blank. The connection has failed anyway. It's probably because it's not blocking and it's just chance that there is data to return when you do the read hence the intermittent failure.
We have set the stream to blocking and left a 5s timeout. I'll update if this resolves the issue but even if not... return false on any operation to the socket/read/write during connection.
It's probably a problem more on Windows servers as you can't rely on querying the socket.
Occasionally when the server is under load you will get this error. Obviously the fread is returning a blank string and you should return false if it's blank. The connection has failed anyway. It's probably because it's not blocking and it's just chance that there is data to return when you do the read hence the intermittent failure.
We have set the stream to blocking and left a 5s timeout. I'll update if this resolves the issue but even if not... return false on any operation to the socket/read/write during connection.
It's probably a problem more on Windows servers as you can't rely on querying the socket.
To avoid the error we added 'if's:
The text was updated successfully, but these errors were encountered: