bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: non-blocking connect fails with no pending acceptors


From: Thomas Bushnell BSG
Subject: Re: non-blocking connect fails with no pending acceptors
Date: Wed, 18 May 2005 07:15:27 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Neal H. Walfield" <neal@walfield.org> writes:

> I don't understand.  The connection is "actually" made when you call
> connect.  POSIX says[1]:
>
>   If the initiating socket is connection-mode, then connect() shall
>   attempt to establish a connection to the address specified by the
>   address argument. If the connection cannot be established
>   immediately and O_NONBLOCK is not set for the file descriptor for
>   the socket, connect() shall block
>
> As I understand it, if connect succeeds, the connection has "actually"
> been made.  This is what my patch does.

Right, without anyone listening on the other end.

In other words, normally the connection made means that both sides
have, um, completed the connection.  The change would allow the
"connect" side to say "yep, got a connection" even though there is no
listener.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]