[Bug 1363] sshd gets stuck: select() in packet_read_seqnr waits indefinitely

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Sep 17 18:54:03 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1363





--- Comment #1 from Damien Miller <djm at mindrot.org>  2007-09-17 18:53:59 ---
(From update of attachment 1348)
>+		while ((ret = select(connection_in + 1, setp, NULL, NULL,
>+		    packet_wait_tvp)) == -1 &&

I think you need to reset packet_wait_tv before each select call. Linux
at least will modify the timeout parameter to the contain the amount of
time remaining, and apparently this behaviour is permitted by POSIX.


-- 
Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- 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