Skip to content
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

Chrome disconnecting after 5 minutes #58

Open
Velocedge opened this issue Jan 17, 2013 · 4 comments
Open

Chrome disconnecting after 5 minutes #58

Velocedge opened this issue Jan 17, 2013 · 4 comments

Comments

@Velocedge
Copy link

I'm using the chat example and with Chrome 24, it connects, sends, and receives fine... for a while. After about five minutes the OnDisconnect event in the server fires from the Chrome client. However, I don't get a close event in the browser.

If I stop the server, the websocket.onclose event fires so I know it's hooked up properly in the browser. If I got the onclose in the browser, I could reconnect but it doesn't know that it's been disconnected.

This works fine (no timeout) in IE10. Just ran more tests and it times out in FF16 and FF18 too. Client is straight Javascript.

@vbguyny
Copy link

vbguyny commented Feb 8, 2013

Do you know if this happens in Safari? This would let us know if the problem is in webkit vs. a chromium issue. Also does Chrome raise any javascript errors after it disconnects?

@Velocedge
Copy link
Author

It times out on Safari 5.1 too. No errors are raised on disconnect... in fact, neither the onClose or onError events fire.

@vbguyny
Copy link

vbguyny commented Feb 10, 2013

I am not able to duplicate your issue... tried for 15 minutes and didn't have my connection get dropped. However I am testing using the my custom version of the websocket which uses SSL. Download it here: https://github.com/vbguyny/Alchemy-Websockets and see if you can duplicate the issue.

@Lakritzator
Copy link

The "5" minutes is the time-out, you can change it.
The problem is that on the server when a timeout occurs I can see a OnDisconnect being called, but afterwards the connection is still in some weird state. A client can still send something (once?) and never gets an error or disconnect.

I found a similar bug here: #89
But this repository seems to be a bit "dead"... no changes for 11 months.

Here is a more active repository (fork): https://github.com/steforster/Alchemy-Websockets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants