MCPcopy
hub / github.com/urllib3/urllib3 / _set_socket_options

Function _set_socket_options

src/urllib3/util/connection.py:93–100  ·  view source on GitHub ↗
(
    sock: socket.socket, options: _TYPE_SOCKET_OPTIONS | None
)

Source from the content-addressed store, hash-verified

91
92
93def _set_socket_options(
94 sock: socket.socket, options: _TYPE_SOCKET_OPTIONS | None
95) -> None:
96 if options is None:
97 return
98
99 for opt in options:
100 sock.setsockopt(*opt)
101
102
103def allowed_gai_family() -> socket.AddressFamily:

Callers 1

create_connectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected