diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2020-09-28 23:29:36 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-28 23:31:43 -0700 |
commit | 028e045da93b7c1c26417e80e4b4e388b86a713d (patch) | |
tree | 9a32ac8b14ec75745902a7e9188781085c248931 /pkg/tcpip/stack/nic.go | |
parent | ba44298a390c69dcf33ae591b9ddc6b3514cc9b3 (diff) |
Fix 1 zero window advertisement bug and a TCP test flake.
In TestReceiveBufferAutoTuning we now send a keep-alive packet to measure the
current window rather than a 1 byte segment as the returned window value in the
latter case is reduced due to the 1 byte segment now being held in the receive
buffer and can cause the test to flake if the segment overheads were to change.
In getSendParams in rcv.go we were advertising a non-zero window even if
available window space was zero after we received the previous segment. In such
a case newWnd and curWnd will be the same and we end up advertising a tiny but
non-zero window and this can cause the next segment to be dropped.
PiperOrigin-RevId: 334314070
Diffstat (limited to 'pkg/tcpip/stack/nic.go')
0 files changed, 0 insertions, 0 deletions