Files
tailscale/ssh/tailssh
James Tucker 028f06144b ssh/tailssh: retain the latest session window size
Drain any stale buffered size before sending the latest window update. The adapter is the only sender to a one-slot channel, so the final resize is retained even if the consumer races with the drain.

Cover late and slow readers over a real SSH session with deterministic synctest synchronization. Keep the final two resizes unread to exercise replacement of the buffered size.

Updates tailscale/corp#50380

Signed-off-by: James Tucker <[email protected]>
Change-Id: I8c077114a6d4765c4208d42a22f384c82f73f75c
(cherry picked from commit 123232260e)
2026-10-27 20:14:22 +00:00
..
2026-04-10 10:48:50 -07:00