gvisor/pkg/tcpip/transport
Mithun Iyer 3075ede86e Fix zero receive window advertisements.
With the recent changes db36d948fa, we try
to balance the receive window advertisements between payload lengths vs
segment overhead length. This works fine when segment size are much
higher than the overhead, but not otherwise. In cases where the segment
length is smaller than the segment overhead, we may end up not
advertising zero receive window for long time and end up tail-dropping
segments. This is especially pronounced when application socket reads
are slow or stopped. In this change we do not grow the right edge of
the receive window for smaller segment sizes similar to Linux.
Also, we keep track of the socket buffer usage and let the window grow
if the application is actively reading data.

Fixes #4903

PiperOrigin-RevId: 345832012
2020-12-05 01:48:00 -08:00
..
icmp Make `stack.Route` thread safe 2020-12-03 08:54:24 -08:00
packet [netstack] Add SOL_TCP options to SocketOptions. 2020-11-26 00:43:13 -08:00
raw [netstack] Add SOL_TCP options to SocketOptions. 2020-11-26 00:43:13 -08:00
tcp Fix zero receive window advertisements. 2020-12-05 01:48:00 -08:00
tcpconntrack garbage collect connections 2020-07-13 12:00:46 -07:00
udp Make `stack.Route` thread safe 2020-12-03 08:54:24 -08:00