mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 03:26:26 -08:00
We keep running into problems with improperly handling proxying TCP connections when one side half-closes their write end (see #20880, #20883, #21522, tailscale/corp#29837, etc). net/netutil now provides PumpTCP, a function that can be used to implement TCP proxying while correctly handling that footgun. Updates #20880. Signed-off-by: Naman Sood <[email protected]> Co-authored-by: Brendan Creane <[email protected]>