[
https://issues.apache.org/jira/browse/SSHD-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17607978#comment-17607978
]
Thomas Wolf commented on SSHD-1256:
-----------------------------------
Looking at the source code of the test and digging into the JSch code, I see
that we request the remote port forwarding using "localhost:1234", but we
request its cancellation via "127.0.0.1:1234".
"localhost" not necessarily is "127.0.0.1".
Could it perhaps be that in the cases where the test fails, binding
"localhost:1234" does not give "127.0.0.1:1234" but some other loopback
address? Then we would not find the entry, and thus not unbind the port, and
then the second binding might fail.
If that is the case, requesting the remote port forwarding also via
"127.0.0.1:1234" should fix this test for good.
> PortForwardingTest.testRemoteForwardingSecondTimeInSameSession always fails
> in Github CI
> ----------------------------------------------------------------------------------------
>
> Key: SSHD-1256
> URL: https://issues.apache.org/jira/browse/SSHD-1256
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.9.0
> Reporter: Thomas Wolf
> Priority: Major
>
> Cannot reproduce locally. A timing issue?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]