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
gh-184 Fix segfault and socket fd leak #227
Conversation
|
Can you please edit the commit message so it starts with |
clamonacc/client/protocol.c
Outdated
| @@ -241,6 +241,7 @@ int onas_dsresult(CURL *curl, int scantype, uint64_t maxstream, const char *file | |||
| int sockd = -1; | |||
| int (*recv_func)(struct onas_rcvln *, char **, char **, int64_t) = NULL; | |||
|
|
|||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file needs to be clang-format'ed.
|
wow, this amazing fix performs perfectly stable in my scenarios - looking forward to the merge! thanks |
This fixes a fatal issue that would occur when unable to queue events due to clamonacc improperly using all available fds. It also fixes the core fd socket leak issue at the heart of the segfault by properly cleaning up after a failed curl connection. Lastly, worst case recovery code now allows more time for consumer queue to catchup. It accomplishes this by increasing wait time and adding retry logic. More info: Cisco-Talos#184
|
Looks good to me too! |
|
Will merge into main, then cherry-pick to rel/0.104. We'll need to create a separate PR for dev/0.103.4 that includes a comment in the News about the fix. |
This fixes a fatal issue that would occur when unable to queue events due to
clamonacc improperly using all available fds.
It also fixes the core fd socket leak issue at the heart of the segfault by
properly cleaning up after a failed curl connection.