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.
socket/setdefaulttimeout
setdefaulttimeout