[ https://issues.apache.org/jira/browse/SSHD-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15687347#comment-15687347 ]
Guillaume Nodet commented on SSHD-716: -------------------------------------- I think this is caused by a channel being gracefully closed while being called to close immediately. In such a case, the session may receive back the close message for the channel which has already been closed, causing an exception to be thrown and the default handler closes the session. > SSHD Reuse of client session for multiple channel connections fails > ------------------------------------------------------------------- > > Key: SSHD-716 > URL: https://issues.apache.org/jira/browse/SSHD-716 > Project: MINA SSHD > Issue Type: Bug > Affects Versions: 1.2.0, 1.3.0 > Reporter: Claude Warren > Attachments: CommsTest.java > > > Test code is attached. > Create a client session > (for 5 commands loop) > Create a channel on the session > send a command. > get the response > close the channel > (goto loop) > Once loop is complete close the session. > Problem is that the session closes before the 5 commands are complete -- This message was sent by Atlassian JIRA (v6.3.4#6332)