diff options
| author | Stefano Garzarella <[email protected]> | 2025-05-14 14:19:26 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-17 01:01:32 +0000 |
| commit | 135a8a4d25a2937b2727e3857471f305d78496da (patch) | |
| tree | 596eeb2c47ba087f0a697c846afb98680bd47191 /tools/testing/selftests/drivers/net/lib/py/env.py | |
| parent | vsock/test: add timeout_usleep() to allow sleeping in timeout sections (diff) | |
| download | kernel-135a8a4d25a2937b2727e3857471f305d78496da.tar.gz kernel-135a8a4d25a2937b2727e3857471f305d78496da.zip | |
vsock/test: retry send() to avoid occasional failure in sigpipe test
When the other peer calls shutdown(SHUT_RD), there is a chance that
the send() call could occur before the message carrying the close
information arrives over the transport. In such cases, the send()
might still succeed. To avoid this race, let's retry the send() call
a few times, ensuring the test is more reliable.
Sleep a little before trying again to avoid flooding the other peer
and filling its receive buffer, causing false-negative.
Signed-off-by: Stefano Garzarella <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/lib/py/env.py')
0 files changed, 0 insertions, 0 deletions
