Re: python select() is limited to fds < 64

2011-04-20 Thread Bert Belder
Christopher Faylor wrote: > 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)

Re: python select() is limited to fds < 64

2011-03-24 Thread Jon TURNEY
On 23/03/2011 20:14, Christopher Faylor wrote: > On Wed, Mar 23, 2011 at 04:38:15PM +, Jon TURNEY wrote: >> On 23/03/2011 15:00, Christopher Faylor wrote: >>> On Wed, Mar 23, 2011 at 11:31:46AM +, Jon TURNEY wrote: On 22/03/2011 20:08, Christopher Faylor wrote: > On Tue, Mar 22, 20

Re: python select() is limited to fds < 64

2011-03-23 Thread Christopher Faylor
On Wed, Mar 23, 2011 at 04:38:15PM +, Jon TURNEY wrote: >On 23/03/2011 15:00, Christopher Faylor wrote: >> On Wed, Mar 23, 2011 at 11:31:46AM +, 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: > J

Re: python select() is limited to fds < 64

2011-03-23 Thread Jon TURNEY
On 23/03/2011 15:00, Christopher Faylor wrote: > On Wed, Mar 23, 2011 at 11:31:46AM +, 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

Re: python select() is limited to fds < 64

2011-03-23 Thread Eric Blake
On 03/23/2011 09:00 AM, Christopher Faylor wrote: > On Wed, Mar 23, 2011 at 11:31:46AM +, 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

Re: python select() is limited to fds < 64

2011-03-23 Thread Christopher Faylor
On Wed, Mar 23, 2011 at 11:31:46AM +, 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 >>

Re: python select() is limited to fds < 64

2011-03-23 Thread Jon TURNEY
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 li

Re: python select() is limited to fds < 64

2011-03-22 Thread Christopher Faylor
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. Wit

Re: python select() is limited to fds < 64

2011-03-22 Thread Václav Haisman
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? > [...] -- VH -- Problem reports: http://cygwin.com/problems.html FAQ:

python select() is limited to fds < 64

2011-03-22 Thread Jon TURNEY
python seems to be built with the default value of FD_SETSIZE, which is only 64 on cygwin. I noticed this as it causes numerous tests in the twisted test suite to fail with "ValueError: filedescriptor out of range in select()" exceptions, but can also be demonstrated with a simple test case: $ c