MCPcopy
hub / github.com/mitmproxy/mitmproxy / connection_lost

Method connection_lost

test/mitmproxy/addons/test_proxyserver.py:517–520  ·  view source on GitHub ↗
(self, exc: Exception | None)

Source from the content-addressed store, hash-verified

515 self._waiter.set_result(None)
516
517 def connection_lost(self, exc: Exception | None) -> None:
518 if not self._waiter.done():
519 self._waiter.set_exception(exc)
520 return super().connection_lost(exc)
521
522 async def wait_handshake(self) -> None:
523 return await asyncio.wait_for(self._waiter, timeout=QuicClient.TIMEOUT)

Callers

nothing calls this directly

Calls 1

doneMethod · 0.45

Tested by

no test coverage detected