socket.7: Correctly describe SO_SNDTIMEO for connect
Subsystems (3)
PATCH 1/1 socket.7: Correctly describe SO_SNDTIMEO for connect
From: Andi Kleen <ak-VuQAYsv1563Yd54FQh9/[email protected]>
When SO_SNDTIMEO is set before connect() connect may return EWOULDBLOCK when the timeout fires. Describe this correctly.
Signed-off-by Andi Kleen <ak-VuQAYsv1563Yd54FQh9/[email protected]>
--- man7/socket.7 | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
man7/socket.7 +4 -0
@@ -434,6 +434,9 @@ set to .B EAGAIN or .B EWOULDBLOCK +or +.B EINPROGRESS +(for connect) .\" in fact to EAGAIN just as if the socket was specified to be nonblocking. If the timeout is set to zero (the default)
@@ -442,6 +445,7 @@ Timeouts only have effect for system calls that perform socket I/O (e.g., .BR read (2), .BR recvmsg (2), .BR send (2), +.BR connect (2), .BR sendmsg (2)); timeouts have no effect for .BR select (2),
Signature · 6 lines
1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1352390123-28658-1-git-send-email-andi-Vw/[email protected]
Michael Kerrisk (man-pages)
AppliedHi Andi,
Quoted 4 lines · Andi Kleen
From: Andi Kleen <ak-VuQAYsv1563Yd54FQh9/[email protected]>
When
SO_SNDTIMEOis set beforeconnect()connect may return EWOULDBLOCK when the timeout fires. Describe this correctly.
Thanks.
Applied.
Cheers,
Michael
Quoted 30 lines
Signed-off-by Andi Kleen <ak-VuQAYsv1563Yd54FQh9/[email protected]>--- man7/socket.7 | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)man7/socket.7 +4
-1@@ -434,6 +434,9 @@ set to .B EAGAIN or .B EWOULDBLOCK +or +.B EINPROGRESS +(for connect) .\" in fact to EAGAIN just as if the socket was specified to be nonblocking. If the timeout is set to zero (the default)@@ -442,6 +445,7 @@ Timeouts only have effect for system calls that perform socket I/O (e.g., .BR read (2), .BR recvmsg (2), .BR send (2), +.BR connect (2), .BR sendmsg (2)); timeouts have no effect for .BR select (2), --1.7.7.6
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html