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

Port is not closed if the current thread is interrupted #201

Open
fwolter opened this issue Jan 20, 2021 · 0 comments
Open

Port is not closed if the current thread is interrupted #201

fwolter opened this issue Jan 20, 2021 · 0 comments
Milestone

Comments

@fwolter
Copy link
Collaborator

fwolter commented Jan 20, 2021

If the port is closed when the current Java thread is interrupted, the closing will be skipped silently.

IOLockedMutex.writeLock().tryLock() throws a InterruptedException here without even trying to acquire the lock. This skips the actual close without any notice.

Expected behavior would be to try at least one time to acquire the lock and close the port.

@MrDOS MrDOS added this to the v5.2.2 milestone May 4, 2021
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

No branches or pull requests

2 participants