mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
Merge pull request #20536 from edsantiago/pasta_timeout_tweaks
systests: pasta: avoid hangs
This commit is contained in:
@@ -240,7 +240,8 @@ function pasta_test_do() {
|
||||
local connect="${proto_upper}${ip_ver}:[${addr}]:${one_port}"
|
||||
[ "${proto}" = "udp" ] && connect="${connect},shut-null"
|
||||
|
||||
(while sleep ${delay} && ! socat -u "OPEN:${XFER_FILE}" "${connect}"; do :
|
||||
local retries=10
|
||||
(while sleep ${delay} && test $((retries--)) -gt 0 && ! timeout --foreground -v --kill=5 90 socat -u "OPEN:${XFER_FILE}" "${connect}"; do :
|
||||
done) &
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user