-
Notifications
You must be signed in to change notification settings - Fork 36
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
Connection still marked as open after server shutdown #32
Comments
Your client needs to send Pings to the server and the server must (by standard) respond with a Pong. If there is no Pong coming, the server is not available any longer and the client can throw away connection. I think Websockets.PCL doesn't support this at the moment. |
I'm seeing the OnClosed event being fired, but IsOpen still returns true (on Android). |
Hello, --Edit-- |
And yet another year... I guess I too will need to keep track of this myself.. even 2 years ;) |
Hello,
I am using the nuget package 1.1.9 assembly versions droid 1.0.1.8 and PCL 1.0.0.8 and i am noticing that if i shutdown my server the clients will still report that IsOpen is true. Looking through the code in master i wasn't able to locate any timeouts in the Send functions that would mark the connection as closed or trigger an OnError am i missing something in the code ? Is there a proper way to set a send timeout to get the OnError to trigger to detect the server going away ?
thank you
The text was updated successfully, but these errors were encountered: