delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/05/15:11:09

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
Date: Fri, 5 Jul 2002 21:10:26 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Select waits for NonBlocking fd
Message-ID: <20020705211026.T21857@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020703222741 DOT CB6551C355 AT redhat DOT com> <31CB870AD5AA384BB5419025DD9F7A841042F0 AT dailymail DOT cfs DOT ac DOT uk> <20020704114629 DOT N21857 AT cygbert DOT vinschen DOT de> <20020704195916 DOT 2944b425 DOT anurag AT proximity DOT com DOT au>
Mime-Version: 1.0
In-Reply-To: <20020704195916.2944b425.anurag@proximity.com.au>
User-Agent: Mutt/1.3.22.1i

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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