bug in channel_still_open() ?
Markus Friedl
Markus.Friedl at informatik.uni-erlangen.de
Thu Apr 5 18:14:47 EST 2001
On Thu, Apr 05, 2001 at 04:09:18AM -0400, Richard E. Silverman wrote:
>
> channel_still_open() does not count "larval" channels as open. If the server
> sets up a protocol 2 connection with no remote command (as with "ssh -N ..."),
> the "server-session" channel remains larval, and the server exits as soon as
> it notices that there are no open channels besides this one. Typically, it
> exits right after the first use of a port forwarding closes.
>
> Below I'm appending a post I just made to comp.security.ssh, with a patch
> which fixes the problem. I don't know if it's the right thing to do, though.
> I'm guessing that not counting larval channels might have been a mistake.
> Perhaps counting them will cause some other problem, though, and the right fix
> is something else?
it depends on what
$ ssh -N -L xxx
should do.
how do you close the ssh session if a "larval" channel counts a 'open'?
-m
More information about the openssh-unix-dev
mailing list