delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/03/06:05:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20110803074950.GH5647@calimero.vinschen.de>
References: <20110803074950 DOT GH5647 AT calimero DOT vinschen DOT de>
Date: Wed, 3 Aug 2011 12:04:42 +0200
Message-ID: <CAHiT=DH91xBt8yE-MMh2X+6+7ttRFz6MKu-OUH6TOdi=B2Xe+Q@mail.gmail.com>
Subject: Re: python doesn't allow descriptors > 63 in select
From: Reini Urban <rurban AT x-ray DOT at>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p73A55pt031076

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019