Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor Date: Thu, 7 Sep 2000 21:20:18 -0400 To: cygwin AT sources DOT redhat DOT com Subject: Re: select() on more than 64 fds Message-ID: <20000907212018.F30288@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: cygwin AT sources DOT redhat DOT com References: <20000907165349 DOT 6141 DOT qmail AT web5409 DOT mail DOT yahoo DOT com> <200009071900 DOT AA09879 AT mlx DOT com> <20000907150811 DOT E24303 AT cygnus DOT com> <200009080055 DOT AA10104 AT mlx DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <200009080055.AA10104@mlx.com>; from mlx@mlx.com on Thu, Sep 07, 2000 at 05:55:47PM -0700 On Thu, Sep 07, 2000 at 05:55:47PM -0700, MarketLogix wrote: > >Has this changed since b20.1 ? > >Cause it sure mattered there ! > >I was unable to mind more than 32 fds w/select until I >called setdtablesize(256) ! Sorry, but you must be imagining things. Look at the source code. I *think* that in B20.1, you may have had to call setdtablesize to *open* more fds but FD_SETSIZE was set to 64. If you tried to use more than 64 fds in select you were out of luck. In 1.1.4, the fd table is extended automatically. There is experimental code in select.cc in 1.1.4 for dealing with more than 64 fds but, unfortunately, it has been pointed out that it is broken. It's fixed in the snapshots, though. To increase the number of fds available for select just have to define FD_SETSIZE before including sys/types.h. However, you will eventually hit a hard Windows limit. For more information, look at sys/types.h, and in the cygwin source dtable.cc, syscalls.cc, and, of course, select.cc. >My assumption was that this expands some per process fdtable >within cygwin1.dll. Is this no longer the case w/ v1.1.x ? >I still use it here only since I haven't bothered taking it out. It still works but it should no longer be necessary. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com