File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,14 @@ \section{\module{socket} ---
109109by the \cfunction {gai_strerror()} C function.
110110\end {excdesc }
111111
112+ \begin {excdesc }{timeout}
113+ This exception is raised when a timeout occurs on a socket which has
114+ had timeouts enabled via a prior call to \method {settimeout()}. The
115+ accompanying value is a string whose value is currently always `` timed
116+ out'' .
117+ \versionadded {2.3}
118+ \end {excdesc }
119+
112120\begin {datadesc }{AF_UNIX}
113121\dataline {AF_INET}
114122\dataline {AF_INET6}
@@ -579,7 +587,7 @@ \subsection{Socket Objects \label{socket-objects}}
579587Set a timeout on blocking socket operations. The \var {value} argument
580588can be a nonnegative float expressing seconds, or \code {None}.
581589If a float is
582- given, subsequent socket operations will raise an \exception {error }
590+ given, subsequent socket operations will raise an \exception {timeout }
583591exception if the timeout period \var {value} has elapsed before the
584592operation has completed. Setting a timeout of \code {None} disables
585593timeouts on socket operations.
You can’t perform that action at this time.
0 commit comments