We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef742a commit fc499cbCopy full SHA for fc499cb
1 file changed
testssl.sh
@@ -1971,8 +1971,9 @@ http_head_printf() {
1971
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
1972
ret=0
1973
touch $tmpfile
1974
- # This doesn't block
1975
- while IFS= read -r line <&33; do
+ # This doesn't block. A timeout seems necessary for MacOS 18 and e.g. Akamai
+ # but maybe it's due because the server side keeps the connection open
1976
+ while IFS= read -t 4 -r line <&33; do
1977
safe_echo "$line" >>$tmpfile
1978
done
1979
cat $tmpfile
0 commit comments