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

[WFCORE-112] Long server shut-dow with unresponsive client with opened JNDI Context #24

Merged
merged 1 commit into from Oct 3, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -109,15 +109,11 @@ final class RemoteConnectionHandler extends AbstractHandleableCloseable<Connecti
* The socket channel was closed with or without our consent.
*/
void handleConnectionClose() {
sendCloseRequest();
closePendingChannels();
closeAllChannels();
remoteConnection.shutdownWrites();
IoUtils.safeShutdownReads(remoteConnection.getChannel());
try {
closeAction();
} catch (IOException ignored) {
log.tracef(ignored, "Failure to close after forced connection close");
}
remoteConnection.getRemoteConnectionProvider().removeConnectionHandler(this);
closeComplete();
}
Expand Down Expand Up @@ -410,7 +406,7 @@ public String getRemoteEndpointName() {
}

protected void closeAction() throws IOException {
sendCloseRequest();
handleConnectionClose();
}

private void closePendingChannels() {
Expand Down