Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

issue#6: fix various potential socket leaks. #8

Merged
merged 3 commits into from
May 23, 2017

Conversation

NathanFrench
Copy link
Collaborator

as per issue#6, try to steady those socket leaks as well as we can for now.

Cleanup open file descriptors when bind_sockaddr fails.

Thanks to @hyperblast for reporting this issue

#6
Hold up the same error checking standards as its owner :)
- evhtp_accept_socket's function definition states that 0 on success, -1
  on error. This was not the case. Also evhtp_accept_socket should not
  close the file descriptor as it is passed as an argument, not an owner.

There should be no negative effects of this change of the documentation
for the function was used :D
@NathanFrench NathanFrench merged commit 13a66b5 into develop May 23, 2017
@NathanFrench NathanFrench deleted the issue-6-socketleak branch May 23, 2017 21:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant