buttonmen-dev / buttonmen

Buttonmen - an online dice game
Other
16 stars 24 forks source link

monitor doesn't retry after intermittent connection failures #3001

Open cgolubi1 opened 3 weeks ago

cgolubi1 commented 3 weeks ago

Some players report that, if they leave their buttonmen tab running in monitor mode (index.html?mode=monitor), when they go to that tab it frequently shows an error like "Could not connect to Button Men server, please try again". Reloading the page at that point succeeds.

Presumably the cause of this is that when an API call made by monitor mode fails due to an intermittent network problem, the UI then goes into an error state and stops retrying connections. Instead, monitor mode should retry retryable-seeming errors, maybe with a backoff if we're feeling fancy.

Note that this issue is not about preventing intermittent network errors (see #1989 for further discussion of that general topic); it is only about the feature that the monitor should be able to recover from an intermittent network error.