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

Slow to reconnect after long local client disconnection. #214

Open
jcoffland opened this issue Nov 21, 2024 · 1 comment
Open

Slow to reconnect after long local client disconnection. #214

jcoffland opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jcoffland
Copy link
Member

See original issue FoldingAtHome/fah-client-bastet#287.

If Web Control is open for some time and the local client is not running it will keep attempting to connect and keep failing. Each time the the connection fails it increases the error count in the browser for that connect. This causes the browser to delay the connections longer and longer. Then if the local client does restart, it can take a long time for Web Control to connect to it.

This can get much worse if the user is impatient and tries reloading Web Control, restarting the local client or even reinstalling. Leading to more and more user frustration. If left calmly alone Web Control and the local client will eventually start talking again.

This issue was noticed very early on. Web Control tries to mitigate this problem by canceling connection attempts early. The idea is that if the connection is cancelled then the browser may not consider it a failed connection and may not increase the delay. This seems to help somewhat but the browser's algorithm for backing of failed connection attempts is opaque and out of our control. Also, killing the connection too early might make things worse.

On possible solution to try is to have the client open multiple ports. Then Web Control could cycle through these ports one at a time.

@muziqaz
Copy link

muziqaz commented Nov 22, 2024

Seems that node1.foldingathome.org was down.
I only noticed it because systray icon had exclamation mark. So I launched web ui through systray, which opened in Firefox, and this was the screen:
FF
Note that Web UI in FF has been closed for the whole day, this was the first time I opened it.
So I launched Edge browser, typed in v8-4 URL, and this is what I got:
edge
I see why exclamation mark was shown in systray, but edge had no issues seeing local client. I closed web ui, only kept Edge tab open.
As I am writing this server is back up, and Edge loaded all the remote clients alongside the local one.
So I opened Web UI on Firefox, and still am seeing nothing. Well, seems that node1 is down again. Edge is back to local client :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants