summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/testutil/testutil.go
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2019-08-06 10:59:49 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-06 11:01:27 -0700
commitdfbc0b0a4cabc6468c82a7665ff655fd4a633dd9 (patch)
treeb7f56b8341e10c88617f25a74e49045685ffb04e /runsc/test/testutil/testutil.go
parent704f9610f3d1add26c266888de62d884338f52cc (diff)
Fix for a panic due to writing to a closed accept channel.
This can happen because endpoint.Close() closes the accept channel first and then drains/resets any accepted but not delivered connections. But there can be connections that are connected but not delivered to the channel as the channel was full. But closing the channel can cause these writes to fail with a write to a closed channel. The correct solution is to abort any connections in SYN-RCVD state and drain/abort all completed connections before closing the accept channel. PiperOrigin-RevId: 261951132
Diffstat (limited to 'runsc/test/testutil/testutil.go')
0 files changed, 0 insertions, 0 deletions