delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/27/05:43:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Delivered-To: corinna-cygwin AT cygwin DOT com
content-class: urn:content-classes:message
Subject: RE: poll function in cygwin
MIME-Version: 1.0
Date: Tue, 27 Aug 2002 16:46:23 +0700
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
Message-ID: <A220D2C5610C714BA00110F541A4ABD9012644D1@home.fsoft.fpt.vn>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Nguyen Minh Sang" <SangNM AT fsoft DOT com DOT vn>
To: "egor duda" <cygwin AT cygwin DOT com>
Cc: <corinna-cygwin AT cygwin DOT com>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g7R9hkO19025

Hi !

  I has written a CHAT server that uses poll function. In linux, it's
OK. The concurrent connection I achieved is lager than 1024. But on
Win2k (compile in cygwin) then concurrent connection reach only 1023 and
the process bug: Segmentaion fault. could you help me to solve this
problem ?

Thanks and Best Regards,
sangnm.

-----Original Message-----
From: egor duda [mailto:deo AT logos-m DOT ru]
Sent: Tuesday, August 27, 2002 2:27 AM
To: Corinna Vinschen
Subject: Re: poll function in cygwin


Hi!

Tuesday, 27 August, 2002 Corinna Vinschen corinna-cygwin AT cygwin DOT com
wrote:

CV> On Tue, Aug 27, 2002 at 02:33:40PM +0700, Nguyen Minh Sang wrote:
>>    On cygwin, function:
>> int poll(struct pollfd *ufds, unsigned int nfds, int timeout);
>> 
>> The maximum of nfds = ?

CV> Theoretically there is no maximum.  In practice the maximum is a
CV> function of the memory available.

I was thinking that maximum number of handles which can be waited via
WaitForMultipleObjects() is 64, thus limiting a number of handles that
can be select()ed. It's probably possible to work around such
limitation in cygwin select() but either i've missed something or no
such workaround was created in cygwin code. 

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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