Name
set_timeout
Synopsis
t
.set_timeout(s
)
Sets the timeout value of t
to
s
seconds. s
is
a float
or None
.
The default timeout value of each new instance
t
of TimeoutSocket
is
None
, meaning that there is no
timeout—t
behaves like an ordinary
socket instance. To change this, module
timeoutsocket
supplies two functions.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.