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

fix openssl operations on non blocking socket #4

Merged
merged 1 commit into from
Jan 31, 2014

Conversation

jrossi
Copy link
Member

@jrossi jrossi commented Jan 29, 2014

I was having problems with ossec-authd (SSL Accept error + SSL Read error). This was due to incorrect error handling for these two operations in the context of non blocking sockets (which is the case for the ossec-authd server).

I don't know what I seem to be the only one to experience this issue (maybe my LAN is particularly slow ... :/)
The diff contains a lot of noise because I removed a if/else construct, and then reindented a big block of code.

Orgianl Pull Request: https://bitbucket.org/jbcheng/ossec-hids/pull-request/26/fix-openssl-operations-on-non-blocking/diff

@gaelmuller

@jrossi
Copy link
Member Author

jrossi commented Jan 31, 2014

I have no seen any reports of errors of this type, but this code is much cleaner and simpler to follow. Plus the error handling is makes sense now 👍

Testing: I am not seeing an issue with 1000 key requests. I have not hooked it it up to valgrind, but that is not gonna tell me any issues with this pull request (just all other ossec memory issue we need to work on).

Thank you @gaelmuller

jrossi added a commit that referenced this pull request Jan 31, 2014
fix openssl operations on non blocking socket
@jrossi jrossi merged commit ab62ea7 into ossec:master Jan 31, 2014
cgzones added a commit that referenced this pull request Feb 6, 2015
ddpbsd pushed a commit that referenced this pull request Sep 29, 2015
Include TS Gateway Events in msauth_rules.xml
ddpbsd pushed a commit to ddpbsd/ossec-hids that referenced this pull request Jun 24, 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