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

Avoid deadlock in Close() #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

timou
Copy link
Contributor

@timou timou commented Feb 20, 2018

A call to listenerRoutine while closing can result in a deadlock. The
cause appears to be listenerRoutine not giving up when faced with an
error of type ERROR_OPERATION_ABORTED.

The change adds a case to specifically handle this error type and bubble
up ErrFileClosed to listenerRoutine, causing it to terminate gracefully.

A call to listenerRoutine while closing can result in a deadlock. The
cause appears to be listenerRoutine not giving up when faced with an
error of type ERROR_OPERATION_ABORTED.

The change adds a case to specifically handle this error type and bubble
up ErrFileClosed to listenerRoutine, causing it to terminate gracefully.
@gdamore
Copy link
Contributor

gdamore commented Jun 7, 2018

This change looks straight-forward, and good. Hopefully it gets integrated soon.

@timou
Copy link
Contributor Author

timou commented Sep 14, 2018

This change has been sitting around a while. Any feedback?

@StefanoBalzarottiNozomi

Any news? @helsaawy

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.

3 participants