From 2846b2c7cc506b971b43a76a7a627c28c2a87ce5 Mon Sep 17 00:00:00 2001 From: Dustin B Date: Sun, 26 Jul 2020 17:03:49 -0400 Subject: [PATCH] Update xoce-import.sh adding `--keepalive-time 5` to send a tcp notice keeping the connection active --- xoce-import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xoce-import.sh b/xoce-import.sh index 1dcc8d3..707e881 100644 --- a/xoce-import.sh +++ b/xoce-import.sh @@ -49,7 +49,7 @@ uuid=$(xe vm-import url="$XOCE_URL" 2> /dev/null) import=$? if [ $import -ne 0 ] then - uuid=$(curl "$XOCE_URL" -L -O -c -| xe vm-import filename=/dev/stdin 2>&1) + uuid=$(curl "$XOCE_URL" -L -O -c - --keepalive-time 5 | xe vm-import filename=/dev/stdin 2>&1) fi # If it fails again (for any reason), we stop the script