MCPcopy Index your code
hub / github.com/apache/tvm / cleanup

Method cleanup

python/tvm/rpc/proxy.py:450–460  ·  view source on GitHub ↗

Cleanup client connection if timeout

()

Source from the content-addressed store, hash-verified

448 pool_dst[key] = handler
449
450 def cleanup():
451 """Cleanup client connection if timeout"""
452 if pool_dst.get(key, None) == handler:
453 logging.info(
454 "Timeout client connection %s, cannot find match key=%s",
455 handler.name(),
456 key,
457 )
458 pool_dst.pop(key)
459 handler.send_data(struct.pack("<i", base.RPC_CODE_MISMATCH))
460 handler.signal_close()
461
462 self.loop.call_later(timeout, cleanup)
463 else:

Callers

nothing calls this directly

Calls 7

infoMethod · 0.80
packMethod · 0.80
getMethod · 0.45
nameMethod · 0.45
popMethod · 0.45
send_dataMethod · 0.45
signal_closeMethod · 0.45

Tested by

no test coverage detected