-
Notifications
You must be signed in to change notification settings - Fork 85
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 for connection to server #41
Comments
bump |
It does not seem to have an timeout at all ? I also have the need for a timeout, preferably custom defined. |
@CyanoFresh @chris-fa @MartinvdBij - are you referring to connection timeouts or response timeouts? |
@mbonneau connection timeout (btw connection consists of response(s)) |
#57 Will allow the use of the |
With the release of v0.3 connection timeouts are now possible: $reactConnector = new \React\Socket\Connector($loop, [
'timeout' => 2 // (seconds)
]);
$pawlConnector = new Ratchet\Client\Connector($loop, $reactConnector); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. I want to do this: If server does not respond for 2 seconds - cancel connection and return message with error to client. How to do this by this library?
Btw thanks for nice work!
The text was updated successfully, but these errors were encountered: