Skip to content
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

Improve error handling #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Improve error handling #7

wants to merge 7 commits into from

Conversation

smetj
Copy link

@smetj smetj commented Jun 23, 2016

Hi,

I have added some better error handling to the Livestatus requests.
It is now able to differentiate between syntax errors and Livestatus availability errors.
Some highlights:

  • An empty response should not be an empty error
  • Livestatus fixed-header response is used to catch Livestatus syntax errors.

Jelle Smet and others added 7 commits June 22, 2016 10:52
…n actual empty list when our query does not return any matches
… differentiating between syntax errors and network connectivity
…connection resulting into many FIN_WAIT2 connections leading to exhausting file descriptors
…sockets.

- Wrap socket cleanup in function
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