delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/27/03:33:40

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: Thu, 27 Mar 2003 09:33:27 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Failed non-blocking connect returns incorrect errno on AF_UNIX protocol
Message-ID: <20030327083327.GB23762@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3E80F8E1 DOT 2000409 AT linuxforum DOT net> <20030326085220 DOT GQ23762 AT cygbert DOT vinschen DOT de> <3E8262B0 DOT 8070503 AT linuxforum DOT net>
Mime-Version: 1.0
In-Reply-To: <3E8262B0.8070503@linuxforum.net>
User-Agent: Mutt/1.4i

On Thu, Mar 27, 2003 at 10:32:16AM +0800, David Huang wrote:
> Corinna Vinschen wrote:
> >I don't see that it's an error.  On non-blocking sockets you have to
> >expect that connect() returns before being connected.  Just because
> >other systems are so quick figuring out that nothing is listening on
> >the other side, this doesn't invalidate the EINPROGRESS response under,
> >well, slower conditions.
> Well, in my test-case, /tmp/.afunix is a dead socket, connect must return
> ECONNREFUSED but not EINPROGRESS, is it so?

Yes, you're right but this information is missing in your previous
posting.  I see why this happens but I don't have a quick solution.

However, thanks for the report,
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