Nmap Development mailing list archives

Re: Socket troubles: Too many open files


From: Patrick Donnelly <batrick () batbytes com>
Date: Thu, 20 Sep 2012 22:08:33 -0400

On Thu, Sep 20, 2012 at 9:23 PM, David Fifield <david () bamsoftware com> wrote:
The descriptors created in the first four calls would be lost, and only
the last would be reclaimed by the close. I think this is a bug in Nsock
or in the NSE binding to Nsock.

I think the problem was introduced when the nsock binding moved socket
iod allocation from new_socket to connect (which was a good thing). I
don't know if throwing a `if (nu->nsiod == NULL) nu->nsiod =
nsi_new(nsp, NULL);' is the right fix...

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


Current thread: