build02/nixpkgs-update: make socat more patient

This may address the intermittent ConnectionResetErrors we're seeing
from the supervisor. By default, socat will terminate its connection to
one side half a second after the other side closes; if the supervisor is
taking more than half a second to respond, this results in dropped jobs.
Bumping this timeout to five seconds should help.
This commit is contained in:
Ryan Hendrickson 2023-10-14 19:29:03 -04:00 committed by zowoq
parent 48471a4582
commit 2c61389d6c

View file

@ -66,7 +66,7 @@ let
msg=READY
while true; do
response=$(echo "$msg" | socat UNIX-CONNECT:"$socket" - || true)
response=$(echo "$msg" | socat -t5 UNIX-CONNECT:"$socket" - || true)
case "$response" in
"") # connection error; retry
sleep 5