mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Socket timeout must be set before connecting
This commit is contained in:
@@ -2025,11 +2025,11 @@ function pipeline_go(host, port, all_requests)
|
|||||||
if connsent >= connlimit or resp.truncated or not socket:get_info() then
|
if connsent >= connlimit or resp.truncated or not socket:get_info() then
|
||||||
socket:close()
|
socket:close()
|
||||||
stdnse.debug3("HTTP pipeline: reconnecting")
|
stdnse.debug3("HTTP pipeline: reconnecting")
|
||||||
|
socket:set_timeout(pipeline_comm_opts.request_timeout)
|
||||||
socket:connect(host, port, bopt)
|
socket:connect(host, port, bopt)
|
||||||
if not socket then
|
if not socket then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
socket:set_timeout(pipeline_comm_opts.request_timeout)
|
|
||||||
partial = ""
|
partial = ""
|
||||||
connsent = 0
|
connsent = 0
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user