Nmap Development mailing list archives

Re: Socket troubles: Too many open files


From: Henri Doreau <henri.doreau () gmail com>
Date: Fri, 21 Sep 2012 13:45:42 +0200

2012/9/21 David Fifield <david () bamsoftware com>:
What do you think about this patch? It moves some common code to a
close_internal function, then calls close_internal when connect is
called again on an already initialized socket. We don't call initialize
again, because that discards socket data like the timeout.

David Fifield

It looks good to me. I was considering alternative approaches to
handle such cases from nsock, but your patch is much cleaner than
anything I could think of.

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


Current thread: