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

Ensure closing a Socket / FileDescriptor multiple times will not thro… #4623

Closed
wants to merge 1 commit into from

Conversation

normanmaurer
Copy link
Member

…w exception

Motivation:

If an user will close a Socket / FileDescriptor multiple times we should handle the extra close operations as NOOP.

Modifications:

Only do the actual closing one time

Result:

No exception if close is called multiple times.

…w exception

Motivation:

If an user will close a Socket / FileDescriptor multiple times we should handle the extra close operations as NOOP.

Modifications:

Only do the actual closing one time

Result:

No exception if close is called multiple times.
@normanmaurer normanmaurer self-assigned this Dec 23, 2015
@normanmaurer normanmaurer added this to the 4.0.34.Final milestone Dec 23, 2015
@normanmaurer
Copy link
Member Author

@Scottmitch PTAL... this also contains some cleanup for the SocketTest

@Scottmitch
Copy link
Member

lgtm!

@normanmaurer
Copy link
Member Author

Cherry-picked into 4.0 (6177738) and 4.1 (80f45d6)

@normanmaurer normanmaurer deleted the fd_close_multiple branch December 23, 2015 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants