1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Socket timeout must be set before connecting

This commit is contained in:
nnposter
2025-09-29 22:24:51 +00:00
parent 751d5fd58b
commit 83824ff04d

View File

@@ -2025,11 +2025,11 @@ function pipeline_go(host, port, all_requests)
if connsent >= connlimit or resp.truncated or not socket:get_info() then
socket:close()
stdnse.debug3("HTTP pipeline: reconnecting")
socket:set_timeout(pipeline_comm_opts.request_timeout)
socket:connect(host, port, bopt)
if not socket then
return nil
end
socket:set_timeout(pipeline_comm_opts.request_timeout)
partial = ""
connsent = 0
end