Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <00bf01c02b30$a83b5860$f7c723cb@lifelesswks> From: "Robert Collins" To: "stefan" , "Cygwin Mailing List" References: Subject: Re: blocking connect() Date: Sun, 1 Oct 2000 09:49:11 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-OriginalArrivalTime: 30 Sep 2000 22:46:01.0914 (UTC) FILETIME=[354E91A0:01C02B30] This is a known issue with cygwin at the moment. You can either "submit a patch" (tm - cgf) or use ioctl as a workaround (search the cyugwin-apps archives for example code). Rob ----- Original Message ----- From: "stefan" To: "Cygwin Mailing List" Sent: Sunday, October 01, 2000 4:12 AM Subject: blocking connect() > > Hello CygWin'ers, > > The example program within the attachment shows a problem with connect() > and non-blocking I/O. Normally a connect() with a socket set to > non-bocking mode via fcntl(O_NONBLOCKING) should not block, but it does > with the current (1.1.4) version of cygwin. Is this problem known to you ? > > Usually the operarion should state something like "Operation now in > progress" and when select()ing in the write set afterwards you can > determine if the connect() has been failed or not via > getsockopt(SO_ERROR). > > Thanks in advance, > Stefan. > > stefanlkcc.org > ---------------------------------------------------------------------------- ---- > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com