This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 "test.py", line 10, in <module>
> ? ? ?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
> set which is >= 64.

I have a similar limitation in postgresql, and I heard that this is
based on a windows limitation, not any predefined constant.
In postgresql I can max fork 63 worker childs, tested by a configure probe.
-- 
Reini

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]