springweblobby / swl-website

Weblobby site component
10 stars 11 forks source link

very few users with springweblobby seems to reconnect (to) fast #20

Closed abma closed 10 years ago

abma commented 10 years ago

how fast does springweblobby reconnect if connection fails for some reason?

i saw very few users (in 5 hours ~2) which seems to hit the new firewall limit on lobby.springrts.com.

http://springrts.com/phpbb/viewtopic.php?f=64&t=32541

whats the fastest it could theoretically auto reconnect if sth. goes wrong?

imo if it reconnects several times, the delay between reconnect attemps should be increased.

(this is basically a question)

db81 commented 10 years ago

It sends a PING every 30 seconds, if it doesn't receive a PONG for 3 pings in a row it reconnects once and if the reconnect fails it just sits there waiting for the user to reconnect manually. So if swl loses connection it waits for 90 seconds before trying to reconnect once and that's it.

Either the firewall rule is wrong or someone spammed clicks on the connect button. My bet is on the latter.

abma commented 10 years ago

hmm, then it should be fine.