summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd/capability_test.go
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-04-16 16:48:14 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-16 16:49:18 -0700
commit0eda0104a5a7c95a36dd288199ec1e90be9d8be9 (patch)
tree3837585eff602122f4b63275ec5e2c36820edc99 /runsc/cmd/capability_test.go
parent75e864fc7529bf71484ecabbb2ce2264e96399cf (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 'runsc/cmd/capability_test.go')
0 files changed, 0 insertions, 0 deletions