[4885] in Athena Bugs
rt 6.4R: man page: CONNECT(2)
daemon@ATHENA.MIT.EDU (cfields@ATHENA.MIT.EDU)
Mon May 7 19:53:32 1990
From: cfields@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Mon, 07 May 90 19:53:19 EDT
System name: e40-342f-2
Type and version: RTPC-ROMPC 6.4R
Display type: apa16
What were you trying to do?
Using the connect call on a nonblocking internet stream socket, I
wanted to know when the connection timed out or was refused, as well
as when the connection was completed.
What's wrong:
The manual page only explains how to find out when connections are completed:
[EINPROGRESS] The socket is non-blocking and the con-
nection cannot be completed immediately.
It is possible to select(2) for comple-
tion by selecting the socket for writ-
ing.
What should have happened:
It should also mention that "it is possible to select(2) for failure
by selecting the socket for reading," with the error status available
as usual from getsockopt(2). It should also be worded much better than
that, however. :)
Since this seems to be an undocumented behaviour, it should probably
also be verified.
Please describe any relevant documentation references:
CONNECT(2), GETSOCKOPT(2)