1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

increase the timeout from 5s to 10s because many servers seem to respond slowly

This commit is contained in:
fyodor
2011-12-28 01:18:25 +00:00
parent 93c0ae4f44
commit ea33a885a3

View File

@@ -67,7 +67,7 @@ action = function(host, port)
local data = bin.pack("H", "FFFD26FFFB26")
local result
socket:set_timeout(5000)
socket:set_timeout(10000)
status, result = socket:send(data)
if ( not(status) ) then
return ("\n ERROR: Failed to send packet: %s"):format(result)
@@ -90,4 +90,4 @@ action = function(host, port)
end
end
return "\n Telnet server does not support encryption"
end
end