DodgyJammers / jammypiece

0 stars 0 forks source link

Websocket connecting is unreliable #24

Open kw217 opened 9 years ago

kw217 commented 9 years ago

The chat.html client often doesn't manage to connect in the huge ten-second window the app gives it, so it misses initial events.

kw217 commented 9 years ago

This is due to some backoff within the Websockets implementation in Firefox. After a few failed connection attempts, a subsequent connection attempt takes around 30 seconds before it returns. During this time it's not actually sending any SYNs.

Fix for now is to turn off the autoretry in chat.html, forcing the client to click Connect manually.