You are here : python_3socketsocketsetdefaulttimeout

socket.setdefaulttimeout() - socket

Set the default timeout in seconds (float) for new socket objects.  When
the socket module is first imported, the default is None.  See
settimeout() for possible values and their respective
meanings.


Syntax

socket.setdefaulttimeout(timeout)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference