diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-03-14 04:39:30 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-03-17 21:30:26 +0300 |
commit | 94c2f50b61258381abcd3a33fd5f2bc87e26df11 (patch) | |
tree | b3656959de1c71aef7b0092bbc7cc6a6022c464e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 41078907eef0dd508d0999996d10683ae114c21a (diff) | |
download | linux-94c2f50b61258381abcd3a33fd5f2bc87e26df11.tar.xz |
selftests/bpf: Fix race in tcp_rtt test
Previous attempt to make tcp_rtt more robust introduced a new race, in which
server_done might be set to true before server can actually accept any
connection. Fix this by unconditionally waiting for accept(). Given socket is
non-blocking, if there are any problems with client side, it should eventually
close listening FD and let server thread exit with failure.
Fixes: 4cd729fa022c ("selftests/bpf: Make tcp_rtt test more robust to failures")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200314013932.4035712-1-andriin@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions