PyDocs

Nav

Networking and Interprocess Communication

setdefaulttimeout

socket

functionnot WASI
  • setdefaulttimeout(timeout)
setdefaulttimeout(timeout)

Set the default timeout in seconds (real number) for new socket objects.
A value of None indicates that new socket objects have no timeout.
When the socket module is first imported, the default is None.
Changed in 3.15
  • 3.15: Accepts any real number, not only integer or float.
0 Examples
No examples for socket/setdefaulttimeout.
See Also
No see-alsos for socket/setdefaulttimeout
0 Notes
No notes for setdefaulttimeout