This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push:
new e512f68 [SSHD-1028] Fix SSH_MSG_DISCONNECT: Too many concurrent
connections (#148)
e512f68 is described below
commit e512f68e2067723ce85c0f8e6a8642f2773aae9c
Author: Guillaume Nodet <[email protected]>
AuthorDate: Wed Jul 22 09:33:01 2020 +0200
[SSHD-1028] Fix SSH_MSG_DISCONNECT: Too many concurrent connections (#148)
---
CHANGES.md | 1 +
sshd-core/src/main/java/org/apache/sshd/common/io/nio2/Nio2Session.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/CHANGES.md b/CHANGES.md
index 3c694a4..1f843bc 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -20,5 +20,6 @@
## Behavioral changes and enhancements
+* [SSHD-1028](https://issues.apache.org/jira/browse/SSHD-1028) Fix
SSH_MSG_DISCONNECT: Too many concurrent connections.
* [SSHD-1033](https://issues.apache.org/jira/browse/SSHD-1033) Fix
simultaneous usage of dynamic and local port forwarding.
* [SSHD-1039](https://issues.apache.org/jira/browse/SSHD-1039) Fix support for
some basic options in ssh/sshd cli.
diff --git
a/sshd-core/src/main/java/org/apache/sshd/common/io/nio2/Nio2Session.java
b/sshd-core/src/main/java/org/apache/sshd/common/io/nio2/Nio2Session.java
index fea2962..fb5b962 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/io/nio2/Nio2Session.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/io/nio2/Nio2Session.java
@@ -375,6 +375,7 @@ public class Nio2Session extends AbstractCloseable
implements IoSession {
log.debug("handleReadCycleCompletion({}) Socket has been
disconnected (result={}), closing IoSession now",
this, result);
}
+ close(true);
}
} catch (Throwable exc) {
completionHandler.failed(exc, attachment);