-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SSHD-1281] Close Nio2Session properly on failure after connecting
If there's an exception in Nio2Connector after the session was set on the DefaultIoConnectFuture, a program might just hang on that session until the next read or write attempt, or until a timeout expired. This was caused by closing the underlying connection, but not properly closing the already existing session, and because the session was already set on the future, setting the exception had no effect anymore. Fix this by immediately closing the Nio2Session properly in that case.
- Loading branch information
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters