default_socket_timeout
Context temporarily setting the default socket timeout.
def default_socket_timeout(
timeout: float
) - > contextmanager
Context temporarily setting the default socket timeout.
Parameters
| Name | Type | Description |
|---|---|---|
| timeout | float | The temporary timeout value in seconds to apply to all new socket objects. |
Returns
| Type | Description |
|---|---|
contextmanager | A context manager that restores the original socket timeout upon exit. |