Open bbkr opened 11 hours ago
Also there is some oddity here. Commenting out LAST $connection.close
causes infinite wait on $session.forward
. I completly do not see the correlation, but it is 100% reproducible.
$ raku -v
Welcome to Rakudo™ v2024.08.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2024.08.
$ apt list --installed | grep ssh
libssh-4/oldstable,oldstable-security,now 0.9.8-0+deb11u1 arm64 [installed]
libssh2-1/oldstable,now 1.9.0-2+deb11u1 arm64 [installed,automatic]
openssh-client/oldstable,oldstable-security,now 1:8.4p1-5+deb11u3 arm64 [installed]
I'm working on bigger tool using forwarding and I have to reuse local listener to open multiple channels on single session to different remote hosts/ports.
Unfortunately after channel is closed SSH connection is left in some bogus state:
When
1
is called on first channel opened then every new channel opened after that immediately leaves block2
. I can reproduce it using provided forward.p6 file.First request:
Second request:
When not closing channel next connections work fine (of course until session limit is reached).