You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Kevin Winchester (JIRA)" <ji...@apache.org> on 2012/10/02 18:53:10 UTC

[jira] [Created] (SSHD-193) Client disconnects when local port forwarding channel is established after local connection already closed

Kevin Winchester created SSHD-193:
-------------------------------------

             Summary: Client disconnects when local port forwarding channel is established after local connection already closed
                 Key: SSHD-193
                 URL: https://issues.apache.org/jira/browse/SSHD-193
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.8.0
            Reporter: Kevin Winchester
            Priority: Minor


If a local TCP/IP port forwarding tunnel is created, and then the local listening socket is opened and closed quickly before the channel open response has come from the server, the client will close the channel without notifying the server.  Then the server will eventually time out and close the channel, but since the client does not recognize the channel anymore, it will disconnect.

To recreate, all you need to do is:

* Connect to server
* Start local port forwarding
* Connect to local port and disconnect immediately
* Keep session to server open for another minute


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (SSHD-193) Client disconnects when local port forwarding channel is established after local connection already closed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SSHD-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SSHD-193.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.0
         Assignee: Guillaume Nodet

Committing to https://svn.apache.org/repos/asf/mina/sshd/trunk ...
	M	sshd-core/src/main/java/org/apache/sshd/client/channel/AbstractClientChannel.java
Committed r1393399

                
> Client disconnects when local port forwarding channel is established after local connection already closed
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SSHD-193
>                 URL: https://issues.apache.org/jira/browse/SSHD-193
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Kevin Winchester
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 0.9.0
>
>         Attachments: SSHD-193.patch
>
>
> If a local TCP/IP port forwarding tunnel is created, and then the local listening socket is opened and closed quickly before the channel open response has come from the server, the client will close the channel without notifying the server.  Then the server will eventually time out and close the channel, but since the client does not recognize the channel anymore, it will disconnect.
> To recreate, all you need to do is:
> * Connect to server
> * Start local port forwarding
> * Connect to local port and disconnect immediately
> * Keep session to server open for another minute

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (SSHD-193) Client disconnects when local port forwarding channel is established after local connection already closed

Posted by "Kevin Winchester (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SSHD-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Winchester updated SSHD-193:
----------------------------------

    Attachment: SSHD-193.patch

I am attaching a patch which corrects this issue.
                
> Client disconnects when local port forwarding channel is established after local connection already closed
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SSHD-193
>                 URL: https://issues.apache.org/jira/browse/SSHD-193
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Kevin Winchester
>            Priority: Minor
>         Attachments: SSHD-193.patch
>
>
> If a local TCP/IP port forwarding tunnel is created, and then the local listening socket is opened and closed quickly before the channel open response has come from the server, the client will close the channel without notifying the server.  Then the server will eventually time out and close the channel, but since the client does not recognize the channel anymore, it will disconnect.
> To recreate, all you need to do is:
> * Connect to server
> * Start local port forwarding
> * Connect to local port and disconnect immediately
> * Keep session to server open for another minute

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira