Nmap Development mailing list archives
RE: DEFAULT_MAX_CONNS
From: <OlkhinAG () nk rn-inform ru>
Date: Tue, 26 Mar 2013 12:40:49 +0400
64 events total, one is used for input stream handle, one for output and 62 left for network connections. Now, when 63rd connection is made ncat just stops handling them. You can test it: start ncat -l --broker 7777 for /L %%i IN (1,1,62) do start ncat localhost 7777 <works there> start ncat localhost 7777 <broken now> Andrey Olkhin -----Original Message----- From: David Fifield [mailto:david () bamsoftware com] Sent: Tuesday, March 26, 2013 12:47 AM To: Ольхин Андрей Геннадьевич Cc: dev () nmap org Subject: Re: DEFAULT_MAX_CONNS On Mon, Mar 25, 2013 at 01:15:20PM +0400, OlkhinAG () nk rn-inform ru wrote:
DEFAULT_MAX_CONNS in ncat.h should be set to 62 for windows since select() limited to maximum of 64 events.
Thanks for this information. Why 62 and not 61 for example? Did you run into a bug with DEFAULT_MAX_CONNS set as it is now? David Fifield _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- DEFAULT_MAX_CONNS OlkhinAG (Mar 25)
- Re: DEFAULT_MAX_CONNS David Fifield (Mar 25)
- Re: DEFAULT_MAX_CONNS Gisle Vanem (Mar 26)
- RE: DEFAULT_MAX_CONNS OlkhinAG (Mar 26)
- Re: DEFAULT_MAX_CONNS David Fifield (Mar 25)