netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

libnetconf2 requests tcp connections too frequently

Open LoveCPro opened this issue 3 years ago • 1 comments

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

LoveCPro avatar Sep 26 '22 03:09 LoveCPro

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.

michalvasko avatar Sep 26 '22 07:09 michalvasko