]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
socat: added a timeout to ensure that it exits eventually
authorNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Sat, 23 Nov 2024 07:53:36 +0000 (08:53 +0100)
committerNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Sun, 24 Nov 2024 11:28:03 +0000 (12:28 +0100)
Relates: #757

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
tests/common.sh

index 6f5fa165f277fe5644d87fc0ccea21ed1ced7461..0383267e9a7e37b4ff258c57a9b680f659fb33d1 100644 (file)
@@ -103,7 +103,7 @@ launch_simple_pppd() {
        #    the config packets exchanged, causing retries and leading to a longer negotiation period.
        #    [use `socat -x` for a hex log of I/O to/from the connected sockets]
 
-       LD_PRELOAD=libsocket_wrapper.so socat -4 -d -d \
+       LD_PRELOAD=libsocket_wrapper.so socat -t 120 -T 120 -4 -d -d \
                 SYSTEM:"LD_PRELOAD= $SUDO $PPPD noauth local debug nodefaultroute logfile '$LOGFILE' $*",pty,raw,echo=0 \
                 OPENSSL-LISTEN:443,verify=0,cert="$CERT",key="$KEY" 2>&1 &
        PID=$!