diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2020-04-16 16:48:14 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-16 16:49:18 -0700 |
commit | 0eda0104a5a7c95a36dd288199ec1e90be9d8be9 (patch) | |
tree | 3837585eff602122f4b63275ec5e2c36820edc99 /pkg/context/BUILD | |
parent | 75e864fc7529bf71484ecabbb2ce2264e96399cf (diff) |
Fix data race in tcp_test.
This change makes SynRcvdCountThreshold and the global synRcvdCount into a stack
configurable value. This is required because in cases like mod_proxy which
create multiple Stack instances the count will be a global value that impacts
all Stack instances.
Further the tests relied on modifying the global threshold to simulate tests
where we want to verify SYN cookie based behaviour. This lead to data races due
to the global being modified/read without locks or atomics.
PiperOrigin-RevId: 306947723
Diffstat (limited to 'pkg/context/BUILD')
0 files changed, 0 insertions, 0 deletions