diff options
author | Dean Deng <deandeng@google.com> | 2020-05-19 11:40:15 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-19 11:41:52 -0700 |
commit | d06de1bede9c40078fe674a6df4849fe3322a861 (patch) | |
tree | 77451e7b84202adbc17e113f365b6719d91a2fea /pkg/sentry/kernel/task_exec.go | |
parent | 5823629442de3762b752afa7cdc204311db21cc8 (diff) |
Fix flaky udp tests by polling before reading.
On native Linux, calling recv/read right after send/write sometimes returns
EWOULDBLOCK, if the data has not made it to the receiving socket (even though
the endpoints are on the same host). Poll before reading to avoid this.
Making this change also uncovered a hostinet bug (gvisor.dev/issue/2726),
which is noted in this CL.
PiperOrigin-RevId: 312320587
Diffstat (limited to 'pkg/sentry/kernel/task_exec.go')
0 files changed, 0 insertions, 0 deletions