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

In my tests, doubling the timeout only increased the number of properly detected telnet servers from 669 to 679. That is only an increase of ~1.5%, so I'm dialing it back down to 7.5s

This commit is contained in:
fyodor
2011-12-28 01:52:54 +00:00
parent ea33a885a3
commit 6827d787b4

View File

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