Log timeout to wait for

This commit is contained in:
Jamie Cameron
2023-10-09 21:59:50 -07:00
parent e40fc5568b
commit bbe7e78516

View File

@@ -1303,11 +1303,10 @@ if ($header_timeout > 10*60) {
$header_timeout = 10*60;
}
# Wait at most 60 secs for start of headers for initial requests, or
# 10 minutes for kept-alive connections
local $rmask;
vec($rmask, fileno(SOCK), 1) = 1;
local $to = $checked_timeout ? 10*60 : $header_timeout;
print DEBUG "handle_request: waiting for $to seconds\n";
local $sel = select($rmask, undef, undef, $to);
if (!$sel) {
if ($checked_timeout) {