1 Commits
Author SHA1 Message Date
Andrew Tridgell c158d241d4 testsuite: regression test for MSG_IO_TIMEOUT(0) timeout-disable
Drives a tiny crafted rsync daemon that completes the handshake and sends
MSG_IO_TIMEOUT(0) as its first multiplex frame, then holds the socket open well
past the client's --timeout.  The fix ignores the non-positive value so the
client keeps its timeout and self-exits; a vulnerable client disables its
timeout and hangs until the test's watchdog kills it (test_fail).  Runs in any
transport mode (it connects to the local crafted server over a rsync:// URL).
RED on stock 3.4.x, GREEN on the fix.

(Leonid Bugaev May-2026 re-audit, KI-47.)
2026-07-20 14:05:32 +10:00