diff options
author | Andi Kleen <andi@firstfloor.org> | 2012-11-09 06:58:36 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-11-09 06:59:57 +0100 |
commit | f327722042dfdb490402b29ffe0f6b8b520825d3 (patch) | |
tree | 8e93faaa97399f94147b41c92b48678f2231ca37 | |
parent | 45fa8fcb8a1263c859fc8df1671594217ee96ffd (diff) | |
download | man-pages-f327722042dfdb490402b29ffe0f6b8b520825d3.tar.gz |
socket.7: Explain effect of SO_SNDTIMEO for connect()
When SO_SNDTIMEO is set before connect(), then connect()
may return EWOULDBLOCK when the timeout fires.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man7/socket.7 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/man7/socket.7 b/man7/socket.7 index 7097ae2fc7..ec1054a59b 100644 --- a/man7/socket.7 +++ b/man7/socket.7 @@ -459,10 +459,14 @@ will be the amount of data transferred; if no data has been transferred and the timeout has been reached then \-1 is returned with .I errno set to -.B EAGAIN +.BR EAGAIN or -.B EWOULDBLOCK +.BR EWOULDBLOCK , .\" in fact to EAGAIN +or +.B EINPROGRESS +(for +.BR connect (2)) just as if the socket was specified to be nonblocking. If the timeout is set to zero (the default) then the operation will never timeout. @@ -755,6 +759,7 @@ library. .\" This man page was written by Andi Kleen. .SH "SEE ALSO" .BR getsockopt (2), +.BR connect (2), .BR setsockopt (2), .BR socket (2), .BR capabilities (7), |