Re: python doesn't allow descriptors > 63 in select

2011-09-09 Thread Jon TURNEY
On 04/08/2011 15:37, Jason Tishler wrote: On Wed, Aug 03, 2011 at 04:57:06PM +0200, Corinna Vinschen wrote: On Aug 3 09:22, Jason Tishler wrote: Anyway, I will add this patch to the next Cygwin Python build. Thanks. Any chance to get this soon? This is a really problematic limitation. I'

Re: python doesn't allow descriptors > 63 in select

2011-08-04 Thread Corinna Vinschen
On Aug 4 10:37, Jason Tishler wrote: > Corinna, > > On Wed, Aug 03, 2011 at 04:57:06PM +0200, Corinna Vinschen wrote: > > On Aug 3 09:22, Jason Tishler wrote: > > > Anyway, I will add this patch to the next Cygwin Python build. > > > > Thanks. Any chance to get this soon? This is a really pro

Re: python doesn't allow descriptors > 63 in select

2011-08-04 Thread Jason Tishler
Corinna, On Wed, Aug 03, 2011 at 04:57:06PM +0200, Corinna Vinschen wrote: > On Aug 3 09:22, Jason Tishler wrote: > > Anyway, I will add this patch to the next Cygwin Python build. > > Thanks. Any chance to get this soon? This is a really problematic > limitation. I'm busy preparing for being

Re: python doesn't allow descriptors > 63 in select

2011-08-03 Thread Corinna Vinschen
On Aug 3 09:22, Jason Tishler wrote: > On Wed, Aug 03, 2011 at 01:52:21PM +0200, Corinna Vinschen wrote: > > On Aug 3 12:29, Jon TURNEY wrote: > > > On 03/08/2011 08:49, Corinna Vinschen wrote: > > > >[snip] > > > > > > > >Can you have a look and, perhaps, provide a new python with a bigger > > >

Re: python doesn't allow descriptors > 63 in select

2011-08-03 Thread Jason Tishler
On Wed, Aug 03, 2011 at 01:52:21PM +0200, Corinna Vinschen wrote: > On Aug 3 12:29, Jon TURNEY wrote: > > On 03/08/2011 08:49, Corinna Vinschen wrote: > > >[snip] > > > > > >Can you have a look and, perhaps, provide a new python with a bigger > > >internal FD_SETSIZE? The 256 from /usr/include/py

Re: python doesn't allow descriptors > 63 in select

2011-08-03 Thread Corinna Vinschen
On Aug 3 12:29, Jon TURNEY wrote: > On 03/08/2011 08:49, Corinna Vinschen wrote: > >Hi Jason, > > > >it looks like there's a build glitch in python: > > > > $ cat> sel.py< > from socket import * > > from select import select > > > > ins = [] > > > > for i in range(1024): > > s = s

Re: python doesn't allow descriptors > 63 in select

2011-08-03 Thread Jon TURNEY
On 03/08/2011 08:49, Corinna Vinschen wrote: Hi Jason, it looks like there's a build glitch in python: $ cat> sel.py< select(ins, [], [], 0) ValueError: filedescriptor out of range in select() I debugged this and it turns out that python does not call Cygwin's select function any

Re: python doesn't allow descriptors > 63 in select

2011-08-03 Thread Corinna Vinschen
On Aug 3 12:04, Reini Urban wrote: > 2011/8/3 Corinna Vinschen: > >  $ python sel.py > >  socket opened with fd 3 > >  socket opened with fd 4 > >  socket opened with fd 5 > >  [...] > >  socket opened with fd 62 > >  socket opened with fd 63 > >  socket opened with fd 64 > >  socket opened with f

Re: python doesn't allow descriptors > 63 in select

2011-08-03 Thread Reini Urban
2011/8/3 Corinna Vinschen: >  $ python sel.py >  socket opened with fd 3 >  socket opened with fd 4 >  socket opened with fd 5 >  [...] >  socket opened with fd 62 >  socket opened with fd 63 >  socket opened with fd 64 >  socket opened with fd 64 >  Traceback (most recent call last): >    File "te

python doesn't allow descriptors > 63 in select

2011-08-03 Thread Corinna Vinschen
Hi Jason, it looks like there's a build glitch in python: $ cat > sel.py < select(ins, [], [], 0) ValueError: filedescriptor out of range in select() I debugged this and it turns out that python does not call Cygwin's select function anymore, as soon as there's a file descriptor in the