File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -520,17 +520,19 @@ \subsection{Socket Objects \label{socket-objects}}
520520\exception {error} exception if the timeout period \var {value} has
521521elapsed before the operation has completed. Setting a timeout of
522522\code {None} disables timeouts on socket operations.
523+ \versionadded {2.3}
523524\end {methoddesc }
524525
525526\begin {methoddesc }[socket]{gettimeout}{}
526527Returns the timeout in floating seconds associated with socket
527528operations. A timeout of \code {None} indicates that timeouts on
528529socket operations are disabled.
530+ \versionadded {2.3}
529531\end {methoddesc }
530532
531533Some notes on the interaction between socket blocking and timeouts:
532- socket blocking mode takes precedence over timeouts. If a socket if
533- set to non-blocking mode, then timeouts set on sockets are not used.
534+ socket blocking mode takes precedence over timeouts. If a socket is
535+ set to non-blocking mode, then timeouts are not used.
534536The timeout value associated with the socket can still be set using
535537\method {settimeout()} and its value retrieved using
536538\method {gettimeout()}, but the timeout is never enforced (an exception
You can’t perform that action at this time.
0 commit comments