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

GH-420: avoid spurious exceptions on closing forwarded channel #422

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

tomaswolf
Copy link
Member

Fix Nio2Session.doCloseGracefully(): before calling AsynchronousSocketChannel.shutdownOutput(), check that the socket is still open, and if we get an IOException all the same, log it with TRACE level. See also comments in doShutdownOutputStream().

Fixes #420.

Fix Nio2Session.doCloseGracefully(): before calling
AsynchronousSocketChannel.shutdownOutput(), check that the socket is
still open, and if we get an IOException all the same, log it with
TRACE level. See also comments in doShutdownOutputStream().

Bug: apache#420
@tomaswolf tomaswolf merged commit 9b485a7 into apache:master Oct 9, 2023
8 checks passed
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.

"ClosedChannelException while shutting down output" after using remote port forwarding tunnel
1 participant