ID EN
Socket

setdefaulttimeout

Python 3.11

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

PYTHON
socket.setdefaulttimeout(timeout)

See Also

settimeout()