From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5570 invoked by alias); 23 Mar 2011 16:38:24 -0000 Received: (qmail 5513 invoked by uid 22791); 23 Mar 2011 16:38:23 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,TW_FD X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 16:38:17 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.8]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 23 Mar 2011 16:38:15 +0000 Message-ID: <4D8A21F7.1020206@dronecode.org.uk> Date: Wed, 23 Mar 2011 16:50:00 -0000 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: python select() is limited to fds < 64 References: <4D88F89B.6000308@dronecode.org.uk> <4D88FE3E.2070607@sh.cvut.cz> <20110322200804.GA22409@ednor.casa.cgf.cx> <4D89DA22.9010404@dronecode.org.uk> <20110323150038.GE13862@ednor.casa.cgf.cx> In-Reply-To: <20110323150038.GE13862@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-03/txt/msg00695.txt.bz2 On 23/03/2011 15:00, Christopher Faylor wrote: > On Wed, Mar 23, 2011 at 11:31:46AM +0000, Jon TURNEY wrote: >> On 22/03/2011 20:08, Christopher Faylor wrote: >>> On Tue, Mar 22, 2011 at 08:53:34PM +0100, V??clav Haisman wrote: >>>> Jon TURNEY wrote, On 22.3.2011 20:29: >>>>> >>>>> python seems to be built with the default value of FD_SETSIZE, which is >>>>> only 64 on cygwin. >>>> Is this not because of the inherent limitation of >>>> WaitForMultipleObjects() call? >>> >>> Yep. Without a rewrite, it's a hard limit to Cygwin's select(). >> >> Please read my email more closely. I am not saying "python select() is >> limited to waiting on 64 fds or less", I am saying "python select() is >> limited to waiting on fd which are less than 64" > > I forgot to add one bit of data. Unless you go out of your way to > change it, Cygwin's select can't wait for an fd > 63. It's basically a > bit mask. So, there are two limitations: 1) the number of handles that > you can wait for with WaitForMultipleObjects() and 2) the size of > Cygwin's fd_set. Yes, I know fd_set is implemented as a bitmap. It's size is controlled by FD_SETSIZE. That is the whole point of the patch in the original mail. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple