diff options
author | Raymond Hettinger <python@rcn.com> | 2003-06-29 04:55:59 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-06-29 04:55:59 (GMT) |
commit | be2528d8668f9e4e1260ca156b9d1564c2f9f2ce (patch) | |
tree | b901f7feef7dab4b1666debca61ff13cc0838cd1 /Doc | |
parent | 5918f8de674915377e4a4aa0ed9cd05db606dd28 (diff) | |
download | cpython-be2528d8668f9e4e1260ca156b9d1564c2f9f2ce.zip cpython-be2528d8668f9e4e1260ca156b9d1564c2f9f2ce.tar.gz cpython-be2528d8668f9e4e1260ca156b9d1564c2f9f2ce.tar.bz2 |
SF patch #760257: add socket.timeout exception
(Contributed by Bob Halley)
Add documentation for the new socket.timeout exception.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libsocket.tex | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index fa4824f..5c6599c 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -109,6 +109,14 @@ representing an error returned by a library call. by the \cfunction{gai_strerror()} C function. \end{excdesc} +\begin{excdesc}{timeout} +This exception is raised when a timeout occurs on a socket which has +had timeouts enabled via a prior call to \method{settimeout()}. The +accompanying value is a string whose value is currently always ``timed +out''. +\versionadded{2.3} +\end{excdesc} + \begin{datadesc}{AF_UNIX} \dataline{AF_INET} \dataline{AF_INET6} @@ -579,7 +587,7 @@ block until they can proceed. Set a timeout on blocking socket operations. The \var{value} argument can be a nonnegative float expressing seconds, or \code{None}. If a float is -given, subsequent socket operations will raise an \exception{error} +given, subsequent socket operations will raise an \exception{timeout} exception if the timeout period \var{value} has elapsed before the operation has completed. Setting a timeout of \code{None} disables timeouts on socket operations. |