MCPcopy
hub / github.com/encode/uvicorn / stop_keepalive

Method stop_keepalive

uvicorn/protocols/websockets/wsproto_impl.py:273–280  ·  uvicorn/protocols/websockets/wsproto_impl.py::WSProtocol.stop_keepalive
(self)

Source from the content-addressed store, hash-verified

271 self.schedule_ping()
272
273 def stop_keepalive(self) -> None:
274 if self.ping_timer is not None:
275 self.ping_timer.cancel()
276 self.ping_timer = None
277 if self.pong_timer is not None: class="cm"># pragma: no cover
278 self.pong_timer.cancel()
279 self.pong_timer = None
280 self.pending_ping_payload = None
281
282 def schedule_ping(self) -> None:
283 assert self.ping_interval is not None

Callers 2

connection_lostMethod · 0.95
shutdownMethod · 0.95

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected