[Bug 2756] sshd does not seem to terminate despite ClientAlive[Interval|CountMax] when a process is polling a remote forwarding channel

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Aug 9 15:54:01 AEST 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2756

--- Comment #2 from willchan at google.com ---
OK, thanks! I'll try testing it the next time I get my team together to
repro this situation again. I'll get back to you on that one.

What did you think about my questions around this code snippet which I
linked earlier from wait_until_can_do_something()?

        /* Wait for something to happen, or the timeout to expire. */
        ret = select((*maxfdp)+1, *readsetp, *writesetp, NULL, tvp);

At a very quick glance, it looks possible that if the client connection
is dead (and thus readsetp never becomes ready), the
ClientAliveInterval (tvp) may never be hit if writesetp always becomes
ready before the ClientAliveInterval expires. In my situation, a
monitoring service polling a remote forwarding channel's server port at
an interval shorter than ClientAliveInterval might conceivably trigger
this.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list