netopeer2
netopeer2 copied to clipboard
libnetconf2 requests tcp connections too frequently
Netopeer2 version:1.1.7 libnetconf: 1.1.7
When the network is unavailable, the request is too frequent, basically once every 1s
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
[INF]: LN: Trying to connect via IPv4 to 192.168.22.129:6666.
[ERR]: LN: connect() failed (Network unreachable).
How to reduce the request frequency
I have added a new CMake variable for libnetconf2 in devel, use cmake -DCALL_HOME_BACKOFF_WAIT=<s> .. to set the number of seconds to wait.