Skip to content

Prevent deadlock/hanging on JDK socket write #191

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

Merged
merged 6 commits into from
Sep 5, 2016

Conversation

acogoluegnes
Copy link
Contributor

@acogoluegnes acogoluegnes commented Sep 1, 2016

Add a timeout do some shutdown operations as they can deadlock (mainly because JDK sockets don't support a timeout on write operations). This can solve the problem which gave birth to #11, and thus avoids a complete NIO2 rewrite.

Fixes #194
References #11

@michaelklishin
Copy link
Contributor

@acogoluegnes thanks. We can do this for 4.0 but we really should switch to NIO in the medium term in my opinion.

@michaelklishin
Copy link
Contributor

@acogoluegnes it looks reasonable at first glance.

@michaelklishin michaelklishin self-assigned this Sep 1, 2016
@acogoluegnes acogoluegnes changed the title DO NOT MERGE Prevent deadlock/hanging on JDK socket write Prevent deadlock/hanging on JDK socket write Sep 5, 2016
@michaelklishin michaelklishin merged commit 73f7f35 into master Sep 5, 2016
@michaelklishin michaelklishin mentioned this pull request Sep 6, 2016
@acogoluegnes acogoluegnes deleted the prevent-socket-write-blocking branch March 21, 2019 08:24
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