gvisor/pkg/tcpip
Bhasker Hariharan c1761378a9 Fix the logic for sending zero window updates.
Today we have the logic split in two places between endpoint Read() and the
worker goroutine which actually sends a zero window. This change makes it so
that when a zero window ACK is sent we set a flag in the endpoint which can be
read by the endpoint to decide if it should notify the worker to send a
nonZeroWindow update.

The worker now does not do the check again but instead sends an ACK and flips
the flag right away.

Similarly today when SO_RECVBUF is set the SetSockOpt call has logic
to decide if a zero window update is required. Rather than do that we move
the logic to the worker goroutine and it can check the zeroWindow flag
and send an update if required.

PiperOrigin-RevId: 254505447
2019-06-21 18:31:31 -07:00
..
adapters/gonet Update canonical repository. 2019-06-13 16:50:15 -07:00
buffer Update canonical repository. 2019-06-13 16:50:15 -07:00
checker Update canonical repository. 2019-06-13 16:50:15 -07:00
hash/jenkins Update canonical repository. 2019-06-13 16:50:15 -07:00
header Update canonical repository. 2019-06-13 16:50:15 -07:00
link Deflake TestSimpleReceive failures due to timeouts 2019-06-21 15:56:12 -07:00
network Update canonical repository. 2019-06-13 16:50:15 -07:00
ports Update canonical repository. 2019-06-13 16:50:15 -07:00
sample Update canonical repository. 2019-06-13 16:50:15 -07:00
seqnum Update canonical repository. 2019-06-13 16:50:15 -07:00
stack Add support for TCP receive buffer auto tuning. 2019-06-13 22:28:01 -07:00
transport Fix the logic for sending zero window updates. 2019-06-21 18:31:31 -07:00
BUILD Update canonical repository. 2019-06-13 16:50:15 -07:00
tcpip.go Add support for TCP receive buffer auto tuning. 2019-06-13 22:28:01 -07:00
tcpip_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
time.s Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
time_unsafe.go Add build guard to files using go:linkname 2019-05-30 12:09:39 -07:00