]> Sergey Matveev's repositories - sgmon.git/commitdiff
Do not transmit whole pile of data
authorSergey Matveev <stargrave@stargrave.org>
Sat, 29 Oct 2022 14:39:30 +0000 (17:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 29 Oct 2022 14:40:12 +0000 (17:40 +0300)
helper/http
helper/https-cert

index a917d218538e59f498eea59703fd3a66c4b96789..1c5377a805d4c25c3c1de1ca7e016fad6450ae76 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh -e
 
 bad=0
-curl --max-time 60 --verbose "$1" >state/curl-out 2>&1 || bad=1
+curl --range 0-100 --max-time 60 --verbose "$1" >state/curl-out 2>&1 || bad=1
 grep -q "$togrep" state/curl-out || bad=1
 if [ "$bad" -eq 1 ] ; then
     cat state/curl-out
index 2f3a0b82d1114982b3d727142ded5e056c30583d..573b6179d5cfaeccf2066f651e53fa016748e6ac 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh -e
 
 bad=0
-curl --max-time 60 --verbose "$1" >/dev/null 2>state/curl-out || bad=1
+curl --range 0-100 --max-time 60 --verbose "$1" >/dev/null 2>state/curl-out || bad=1
 grep -q "subject:.*CN=$2" state/curl-out || bad=1
 if [ "$bad" -eq 1 ] ; then
     cat state/curl-out