Fix DLT-Multinode: Gateway does not recognize reset of passive node #551#584
Fix DLT-Multinode: Gateway does not recognize reset of passive node #551#584fivef wants to merge 1 commit intoCOVESA:masterfrom
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>