diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-01-09 19:35:27 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-09 19:35:27 -0800 |
commit | b08da42285fe97f23e20bdf35ab20fdac92b3a5c (patch) | |
tree | bd3e582056a81cead4f1e29e3f6068a80a8d03c9 /pkg/tcpip/transport/tcp/rcv.go | |
parent | 356d81146bafc4b4548163eb87e886c851b49e12 (diff) | |
parent | c276e4740f225068dc394a500dfdddd64af1d18a (diff) |
Merge pull request #1523 from majek:fix-1522-silly-window-rx
PiperOrigin-RevId: 289019953
Diffstat (limited to 'pkg/tcpip/transport/tcp/rcv.go')
-rw-r--r-- | pkg/tcpip/transport/tcp/rcv.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/tcpip/transport/tcp/rcv.go b/pkg/tcpip/transport/tcp/rcv.go index 0a5534959..05c8488f8 100644 --- a/pkg/tcpip/transport/tcp/rcv.go +++ b/pkg/tcpip/transport/tcp/rcv.go @@ -98,12 +98,6 @@ func (r *receiver) getSendParams() (rcvNxt seqnum.Value, rcvWnd seqnum.Size) { // in such cases we may need to send an ack to indicate to our peer that it can // resume sending data. func (r *receiver) nonZeroWindow() { - if (r.rcvAcc-r.rcvNxt)>>r.rcvWndScale != 0 { - // We never got around to announcing a zero window size, so we - // don't need to immediately announce a nonzero one. - return - } - // Immediately send an ack. r.ep.snd.sendAck() } |