]> git.ipfire.org Git - thirdparty/collectd.git/commit
Collectd::Unixsock: Make code robust against socket errors and disconnections 3083/head
authorGuillem Jover <gjover@sipwise.com>
Fri, 7 Apr 2017 14:45:23 +0000 (16:45 +0200)
committerGuillem Jover <gjover@sipwise.com>
Mon, 18 Feb 2019 12:23:54 +0000 (13:23 +0100)
commitd7af9ef00abb1b022ad743048731664c6c3e0e19
treeea9a9386f3a06f48657ac8d9aee893c9f83d4033
parent37416d36eb00337d5cea192caad939ec7497318f
Collectd::Unixsock: Make code robust against socket errors and disconnections

We should check the errors on socket operations, and in case of EPIPE,
which happens on socket disconnection, such as when the server gets
restarted, we should try to reconnect and retry the last operation
to avoid losing data.
bindings/perl/lib/Collectd/Unixsock.pm