Nmap Development mailing list archives

Re: hddtemp-info.nse


From: Toni Ruottu <toni.ruottu () iki fi>
Date: Sun, 12 Dec 2010 23:09:10 +0200

I doubt that increasing the timeout will help. As far as I can tell
the problem is not about the timeout being too short. The problem is
that comm library does only one recv. My impression is that the
response arrives very quickly, but in multiple parts. So reading it is
really fast, as long as you do multiple recv.

  --Toni

On Sat, Dec 11, 2010 at 9:18 PM, David Fifield <david () bamsoftware com> wrote:
On Thu, Dec 09, 2010 at 11:20:24AM +0200, Toni Ruottu wrote:
On Thu, Dec 9, 2010 at 2:07 AM, David Fifield <david () bamsoftware com> wrote:
On Tue, Nov 30, 2010 at 07:03:35PM +0200, Toni Ruottu wrote:
The problem seems to be that comm always does a single receive. If the
network conditions are good this does not matter, but over the
Internet the first receive is not likely to contain the full banner. I
think the comm library needs to be changed to do as many receives as
it is able to do before a time out.

Does this patch make a difference?

No. Still broken, after applying the patch.

Try increasing the timeout (shouldn't require the patch I gave you). If
you find a reasonable timeout value I'll commit it.

http://nmap.org/nsedoc/lib/comm.html

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: