-
Notifications
You must be signed in to change notification settings - Fork 1.2k
network plugin: Client doesn't retry to resolve server. #627
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
Comments
I'm suffering from the same issue. |
me too. |
#609 has some additional information, namely:
This looks like a problem in DNS resolution. AfaIk the resolver will cache negative results, based on the SOA record of your nameserver. This doesn't really explain why it would work when restarting collectd, but it could explain those errors. |
n/m, the problem is that network_config_add_server(), which is called at configure time, tries to open the socket – and fails. Opening the socket should of course be re-tried at runtime, i.e. when calls to write() determine that the opening the socket hasn't been tried for a while. |
This moves the socket creation logic so it's called from networt_send_buffer_plain(). This allows us to recover after network failures or when collectd was started before the network was available. Fixes: #627
This should fix it. It's currently sitting in collectd-5.3 and will be merged to the collectd-5.4 and master branches. This will not be fixed in 4.* though. Best regards, |
All reactions
-
👍 1 reaction
Version: 4.10
Distribution: OpenWRT
collectd stops transmittag data using the network-plugin, if longer outages occur. (Tested IPv6 only).
The text was updated successfully, but these errors were encountered: