Re: Non-blocking sockets, connect(), and socket states

From: Alan Cox
Date: Sun May 01 2005 - 08:48:38 EST


On Iau, 2005-04-28 at 11:34, Bernard Blackham wrote:
> Should it be the kernel's responsibility to set SS_CONNECTED when
> the connection is established? Or should I go file bugs and submit
> patches on all the applications that use non-blocking sockets and
> don't call connect() a second time?

See posix 1003.1g drafts. I believe from the state diagram there that
you should call connect() again once it completes.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/