summaryrefslogtreecommitdiffhomepage
path: root/test/benchmarks/ml
diff options
context:
space:
mode:
authorMithun Iyer <iyerm@google.com>2020-12-05 01:45:47 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-05 01:48:00 -0800
commit3075ede86edf04117f120b3cf110e699034b759c (patch)
tree7c62f7c40bbffc7d032b8f3b1d7b040933b28c94 /test/benchmarks/ml
parentdf2dbe3e38aac73926a51d8045dbb419c6167cf5 (diff)
Fix zero receive window advertisements.
With the recent changes db36d948fa63ce950d94a5e8e9ebc37956543661, 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
Diffstat (limited to 'test/benchmarks/ml')
0 files changed, 0 insertions, 0 deletions