-
Notifications
You must be signed in to change notification settings - Fork 7
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
Reconnect on lost network #15
Comments
@dtonon Which line did the CPU spiked? Could you recognize it? I tried your script on my local machine, it works and did not spike a CPU. |
@unasuke sorry, my fault, the previus code works because I simplified it too much.
Related: when I block the network (applying a firewall rule) I cannot see any "reconnecting" output, perhaps it is somehow buffered? |
@unasuke even removing the ricorsive connection the hang problem remains. Tested code:
|
It's great infomation! I tried that scripts on Ubuntu (WSL), but there is no problem. |
Hi, which is the correct way to manage a reconnect when the connection is lost?
I tried this code:
But it does not work.
It doesn't give any output when I block the network, while the CPU spikes up at 100%.
Any help :)
The text was updated successfully, but these errors were encountered: