message: Add retries to iperf
diff: @@ -56,11 +56,19 @@ jq -r '.intervals[].sum | [(.start | strftime("%H:%M:%S")), .bits_per_second/100
  LOG_DIR="$OUTPUT_DIR/~logs/$NAME/iperf"
  +# iperf3 occasionally crashes, so retry a couple times
  +MAX_ATTEMPTS=3
  +ATTEMPTS=1
  +until [ "$ATTEMPTS" -gt $MAX_ATTEMPTS ]
  +do
  + echo "Attempt ${ATTEMPTS} of ${MAX_ATTEMPTS}"
  ROOT_DIR="$ROOT_DIR" \
  LOG_DIR="$LOG_DIR" \
  SCENARIO="$SCENARIO" \
  DURATION="$DURATION" \
  -docker-compose --file quic/s2n-quic-qns/benchmark/docker-compose.yml up --abort-on-container-exit --timeout 1 sim iperf_client iperf_server
  + docker-compose --file quic/s2n-quic-qns/benchmark/docker-compose.yml up --abort-on-container-exit --timeout 1 --exit-code-from iperf_client sim iperf_client iperf_server && break
  + ATTEMPTS=$((ATTEMPTS+1))
  +done
  tshark -r "$LOG_DIR/$CLIENT_PCAP" -t u -qz io,stat,1,"SUM(ip.len)"ip.len\&\&ip.dst==193.167.0.90 | awk -F '[\\|\s]' '{ print $2 $3}' > "${TMP}/iperf.nsv"
  # Find the time of the first real data transfer packet
  