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:
Kevin Krakauer
2023-05-09 14:59:29 -07:00
committed by gVisor bot
parent 68eae97940
commit 4ab1cf4066
+1 -1
View File
@@ -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