Skip to content

Commit 0a7c8e2

Browse files
committed
Documentation/reference/user: Describe connect() after SO_SNDTIMEO.
A blocking connect() gives EINPROGRESS when the send timeout of the socket expires before the handshake completes. The connection goes on. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent e53a32d commit 0a7c8e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Documentation/reference/user/11_network.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ the following paragraphs.
147147
space.
148148

149149
``EINPROGRESS`` The socket is non-blocking and the connection cannot be
150-
completed immediately.
150+
completed immediately, or the send timeout of the socket
151+
(``SO_SNDTIMEO``) expired first. The connection goes on: ``poll()``
152+
reports ``POLLOUT`` when it completes.
151153

152154
``EINTR`` The system call was interrupted by a signal that was caught.
153155

0 commit comments

Comments
 (0)