MCPcopy Index your code
hub / github.com/masterking32/MasterHttpRelayVPN / handler

Function handler

main.py:320–330  ·  view source on GitHub ↗
(loop, context)

Source from the content-addressed store, hash-verified

318 _ProactorBasePipeTransport._call_connection_lost), which is harmless but
319 verbose on Python/Windows when a remote host force-closes a socket."""
320 def handler(loop, context):
321 exc = context.get("exception")
322 cb = context.get("handle") or context.get("source_traceback", "")
323 if (
324 isinstance(exc, ConnectionResetError)
325 and "_call_connection_lost" in str(cb)
326 ):
327 return # suppress: benign Windows socket cleanup race
328 log.error("[asyncio] %s", context.get("message", context))
329 if exc:
330 loop.default_exception_handler(context)
331 return handler
332
333

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected