stackexchange-notifications icon indicating copy to clipboard operation
stackexchange-notifications copied to clipboard

Websockets eventually stop working

Open kav2k opened this issue 10 years ago • 3 comments

I'm experiencing a recurring issue where, after a missed heartbeat restart, the endpoint simply won't report any events despite the subscription in the first packet.

Heartbeats for the connection continue as normal, but no topbar events ever arrive. As such, the extension does not suspect anything.

This may not be a problem on the extension's side, but requires research.

kav2k avatar Aug 05 '15 15:08 kav2k

I see a similar issue in Firefox. Sometimes, when I regain my network connection after loosing it (e.g. due to sleeping or just a bad connection), the WebSocket seems live, but I don't receive any events.

Perhaps it might be useful to periodically ping the WebSocket to see if the other end responds. Patches are welcome :)

Rob--W avatar Aug 05 '15 16:08 Rob--W

Like I said, heartbeat messages continue to be exchanged.. Did you mean re-sending the subscription message?

By the way, why is -topbar used instead of -inbox?

kav2k avatar Aug 05 '15 16:08 kav2k

Like I said, heartbeat messages continue to be exchanged.. Did you mean re-sending the subscription message?

I mean in case the server is gone, and the browser somehow fails to detect that the socket is gone.

By the way, why is -topbar used instead of -inbox?

The protocol changed at some point, and then I wrote 926542f1ca5a80d43cbb8d1532dcb00cf4140c7e, which resolved the issue, and is still working to this date.

Rob--W avatar Aug 05 '15 16:08 Rob--W