MCPcopy
hub / github.com/urllib3/urllib3 / clear

Method clear

src/urllib3/poolmanager.py:281–288  ·  view source on GitHub ↗

Empty our store of pools and direct them all to close. This will not affect in-flight connections, but they will not be re-used after completion.

(self)

Source from the content-addressed store, hash-verified

279 return pool_cls(host, port, **request_context)
280
281 def clear(self) -> None:
282 """
283 Empty our store of pools and direct them all to close.
284
285 This will not affect in-flight connections, but they will not be
286 re-used after completion.
287 """
288 self.pools.clear()
289
290 def connection_from_host(
291 self,

Callers 7

test_manager_clearMethod · 0.95
__exit__Method · 0.95
test_disposalMethod · 0.45
wait_for_socketFunction · 0.45
test_timeoutMethod · 0.45
test_total_timeoutMethod · 0.45
socket_handlerMethod · 0.45

Calls

no outgoing calls

Tested by 6

test_manager_clearMethod · 0.76
test_disposalMethod · 0.36
wait_for_socketFunction · 0.36
test_timeoutMethod · 0.36
test_total_timeoutMethod · 0.36
socket_handlerMethod · 0.36