-
Notifications
You must be signed in to change notification settings - Fork 295
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
Fix DLT-Multinode: Gateway does not recognize reset of passive node #551 #584
base: master
Are you sure you want to change the base?
Conversation
…OVESA#551 Enable TCP keepalive to detect broken connections due to network disconnects. Without this in cases where no TCP FIN or RST package is received from the server, the dlt_client will never notice that it was disconnected from the server. Thus it will not reconnect when the server is available again. Also improve logging output to see which connection fails.
Hello Minh |
Hello @Bichdao021195 |
Try to config passivenode in container
|
The issue can be reproduced on docker:
What next? |
Hi @minminlittleshrimp
|
Is there any progress with the review? Or do you need some support? |
Hello @fivef |
Hello @michael-methner |
Enable TCP keepalive to detect broken connections due to network disconnects. Without this in cases where no TCP FIN or RST package is received from the server, the dlt_client will never notice that it was disconnected from the server. Thus it will not reconnect when the server is available again. Also improve logging output to see which connection fails.
See this #551 and the discussion here: #559
To reproduce this issue fixed here you can run a dlt_daemon as gateway on one machine and a one dlt_daemon as a passive node on another machine or docker container. Then disconnect the network cable or
sudo ifconfig eth0 down/up
. In the docker case you can disconnect the container from the bridge by runningdocker network disconnect/connect <docker network name> <container name>