mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
tcp_benchmark: make compatible with iperf3
iperf3 outputs a different error message when failing to connect. We need to recognize it to know to retry. PiperOrigin-RevId: 530721657
This commit is contained in:
committed by
gVisor bot
parent
68eae97940
commit
4ab1cf4066
@@ -414,7 +414,7 @@ trap cleanup EXIT
|
||||
while ${nsjoin_binary} /tmp/client.netns iperf \\
|
||||
${iperf_version_arg} -p ${proxy_port} -c ${client_addr} -t ${duration} -f m -P ${num_client_threads} 2>&1 \\
|
||||
| tee \$results_file \\
|
||||
| grep "connect failed" >/dev/null; do
|
||||
| grep -E "connect failed|unable to connect" >/dev/null; do
|
||||
sleep 0.1 # Wait for all services.
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user