8000 Make the perl Unixsock module robust against socket errors and disconnects by guillemj · Pull Request #3083 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make the perl Unixsock module robust against socket errors and disconnects #3083

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

Merged
merged 2 commits into from
Feb 26, 2020

Conversation

guillemj
Copy link
Contributor
@guillemj guillemj commented Feb 18, 2019

The code does not currently handle the collectd daemon going away gracefully. This change makes the code robust against those cases.

ChangeLog: perl Unixsock: Made the module robust against socket errors and disconnects.

…nections

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.
Copy link
Contributor
@dago dago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dago dago added this to the 5.11.0 milestone Feb 26, 2020
@dago dago merged commit 44583c1 into collectd:master Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0