[
https://issues.apache.org/jira/browse/SSHD-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Goldstein Lyor resolved SSHD-433.
---------------------------------
Resolution: Fixed
The problem was that the internal mapper that was tracking the remote port
forwarding was using the *resolved* bound address - e.g., _127.0.0.1_ for
_localhost_. On the other hand, when the forwarding was cancelled, the code was
still looking for the *un-resolved* address - e.g., _localhost_. The fix
consists of using a special entry that holds *both* the original name and the
resolved one, and then locating the entry by matching *either* one.
> Cannot close and then reopen a remote forward on the same port
> --------------------------------------------------------------
>
> Key: SSHD-433
> URL: https://issues.apache.org/jira/browse/SSHD-433
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 0.13.0
> Reporter: Jay Guidos
> Assignee: Goldstein Lyor
> Attachments:
> 0001-SSHD-433-Cannot-close-and-then-reopen-a-remote-forwa.patch
>
>
> Opening a remote forwarding port works fine, but when it is closed SSHD fails
> to unbind the socket, leaving the port open.
> While the SSHD process remains connected the remote port will remain open
> forever, causing subsequent remote forwarding attempts to fail in this
> session or any other) until the SSHD process terminates.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)