summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/lock/lock_test.go
diff options
context:
space:
mode:
authorMarek Majkowski <marek@cloudflare.com>2020-01-08 12:56:39 +0000
committerMarek Majkowski <marek@cloudflare.com>2020-01-08 12:56:39 +0000
commitc276e4740f225068dc394a500dfdddd64af1d18a (patch)
tree9947882f18ab1187df8646ba0b49b862b1996c97 /pkg/sentry/fs/lock/lock_test.go
parent08a97a6d193f46cd547fadae3bb4125cc788543b (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