Nmap Development mailing list archives

Re: NPing running out of sockets


From: Patrik Karlsson <patrik () cqure net>
Date: Fri, 15 Oct 2010 20:29:00 +0200

Hi Luis,

I've tested the patch and it seems to work.

//Patrik
On 15 okt 2010, at 16.20, Luis MartinGarcia. wrote:

Hi Patrick,

I think I have a temporary work-around for the problem. Please try the
attached patch and let me know if it works for you.

Regards,

Luis MartinGarcia.



On 10/01/2010 05:20 PM, Patrik Karlsson wrote:
Hi,

While testing the broadcast functionality per Davids instructions [1] I ran into some trouble with Nping.
It seems as if sockets are not released properly and slowly increase with each packet being sent.
After 252seconds I'm out of sockets on my OS X system. The error looks like this:

SENT (246.2010s) UDP packet with 20 bytes to 255.255.255.255:67
SENT (247.2020s) UDP packet with 20 bytes to 255.255.255.255:67
SENT (248.2020s) UDP packet with 20 bytes to 255.255.255.255:67
SENT (249.2030s) UDP packet with 20 bytes to 255.255.255.255:67
SENT (250.2040s) UDP packet with 20 bytes to 255.255.255.255:67
SENT (251.2040s) UDP packet with 20 bytes to 255.255.255.255:67
SENT (252.2040s) UDP packet with 20 bytes to 255.255.255.255:67
Socket troubles: Too many open files
Assertion failed: (nse->iod->sd >= 0), function nsp_add_event, file nsock_core.c, line 1239.
Abort trap

This is the command I'm running
nping --udp -p 67 255.255.255.255 -c 0 --data-length 20


//Patrik

[1] http://seclists.org/nmap-dev/2010/q4/1
--
Patrik Karlsson
http://www.cqure.net
http://www.twitter.com/nevdull77





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



<nping_toomanyopenfiles.diff>

--
Patrik Karlsson
http://www.cqure.net
http://www.twitter.com/nevdull77





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


Current thread: