-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout passed to a ZnClient is ignored while making the connection via the underlying socket #59
Comments
Timeout now passed through on connect (glassdb/glass@7ec66c5) |
@dalehenrich We applied this patch in a 3.1.0.6 extent but I'm getting some weird experimental timings. If we pass 30s to the Looking at the code, this is because I would expect the entire ZnClient connection to timeout after the given value, but now it takes the value multiplied by the length of the |
Not sure what the right solution for this is. If I understand correctly, each network interface on the machine gets tried with the specified timeout. It does not seem a good idea to wait for |
Then again... it seems that's the way curl deals with these situations: http://curl.haxx.se/mail/lib-2014-11/0164.html |
Suppose the following situation:
Expected behavior: an error should be thrown after 3 seconds.
What happens: the user has to wait for the (default) timeout of GsSocket; the timeout passed in to the client is ignored.
Reason: the SocketStream does not use the timeout while connecting to the socket created via SocketStreamSocket.
In the code this is reflected in the following extension method
I compared this with the Pharo implementation, and here the timeout is passed.
The text was updated successfully, but these errors were encountered: