Skip to content

Commit fc499cb

Browse files
committed
Akamai keeps connection open (opossum check problem)
1 parent 0ef742a commit fc499cb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

testssl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,8 +1971,9 @@ http_head_printf() {
19711971
safe_echo "HEAD ${path} HTTP/1.1\r\nUser-Agent: ${useragent}\r\nHost: ${node}\r\nAccept: */*\r\n${extra_header}\r\n\r\n" >&33 2>$errfile
19721972
ret=0
19731973
touch $tmpfile
1974-
# This doesn't block
1975-
while IFS= read -r line <&33; do
1974+
# This doesn't block. A timeout seems necessary for MacOS 18 and e.g. Akamai
1975+
# but maybe it's due because the server side keeps the connection open
1976+
while IFS= read -t 4 -r line <&33; do
19761977
safe_echo "$line" >>$tmpfile
19771978
done
19781979
cat $tmpfile

0 commit comments

Comments
 (0)