diff options
author | Marek Majkowski <marek@cloudflare.com> | 2020-01-08 12:56:39 +0000 |
---|---|---|
committer | Marek Majkowski <marek@cloudflare.com> | 2020-01-08 12:56:39 +0000 |
commit | c276e4740f225068dc394a500dfdddd64af1d18a (patch) | |
tree | 9947882f18ab1187df8646ba0b49b862b1996c97 /pkg/sentry/fs/lock/lock_test.go | |
parent | 08a97a6d193f46cd547fadae3bb4125cc788543b (diff) |
Fix #1522 - implement silly window sydrome protection on rx side
Before, each of small read()'s that raises window either from zero
or above threshold of aMSS, would generate an ACK. In a classic
silly-window-syndrome scenario, we can imagine a pessimistic case
when small read()'s generate a stream of ACKs.
This PR fixes that, essentially treating window size < aMSS as zero.
We send ACK exactly in a moment when window increases to >= aMSS
or half of receive buffer size (whichever smaller).
Diffstat (limited to 'pkg/sentry/fs/lock/lock_test.go')
0 files changed, 0 insertions, 0 deletions