Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 10 Jul 2002 18:58:49 +1000
From: Anurag Sharma <anurag@proximity.com.au>
To: cygwin@cygwin.com
Cc: corinna-cygwin@cygwin.com
Subject: Re: Select waits for NonBlocking fd
Message-Id: <20020710185849.1b0b9dd8.anurag@proximity.com.au>
In-Reply-To: <20020705211026.T21857@cygbert.vinschen.de>
References: <20020703222741.CB6551C355@redhat.com>
	<31CB870AD5AA384BB5419025DD9F7A841042F0@dailymail.cfs.ac.uk>
	<20020704114629.N21857@cygbert.vinschen.de>
	<20020704195916.2944b425.anurag@proximity.com.au>
	<20020705211026.T21857@cygbert.vinschen.de>
Organization: Proximity
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Fri, 5 Jul 2002 21:10:26 +0200
Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:

> On Thu, Jul 04, 2002 at 07:59:16PM +1000, Anurag Sharma wrote:
> > Hi All,
> > 
> > We have come across a peculiar problem while setting up sockets for
> > connection.
> > 
> > 1) We make the socket non-blocking 
> > 2) give it an invalid port to connect to on the localhost.
> > 3) errno is correctly set to EINPROGRESS
> > 4) Doing a select on the socket waits indefinetly!!
> > 
> > Attached is code that displays this  behaviour. This code works as
> > expected on linux.
> > 
> > Also if we check for socket error using  getsockopt before we do a
> > select, no error is returned. On linux it correctly returns
> > 'Connection refused'.
> 
> Thanks for the report and especially thanks for the test application.
> I've applied a patch to the Cygwin source.  You could try the next
> Cygwin developers snapshot.
> 
> Corinna

Is this patch supposed to be included in cygwin 1.3.12-cygwin-1-3-12-1.
Doesn't seem to be there.  

Regards,

Anurag


>

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

