Akamai keeps connection open (opossum check problem)

This commit is contained in:
Dirk Wetter
2025-11-27 18:21:26 +01:00
parent 0ef742a17a
commit fc499cb67f

View File

@@ -1971,8 +1971,9 @@ http_head_printf() {
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 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
ret=0 ret=0
touch $tmpfile touch $tmpfile
# This doesn't block # This doesn't block. A timeout seems necessary for MacOS 18 and e.g. Akamai
while IFS= read -r line <&33; do # but maybe it's due because the server side keeps the connection open
while IFS= read -t 4 -r line <&33; do
safe_echo "$line" >>$tmpfile safe_echo "$line" >>$tmpfile
done done
cat $tmpfile cat $tmpfile