From 83824ff04d877ab8772f2f660cbecadca230e116 Mon Sep 17 00:00:00 2001 From: nnposter Date: Mon, 29 Sep 2025 22:24:51 +0000 Subject: [PATCH] Socket timeout must be set before connecting --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 7c531038e..4acbe28f6 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -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