MCPcopy Create free account
hub / github.com/EasyIME/PIME / is_closing

Method is_closing

python/python3/tornado/websocket.py:1282–1289  ·  view source on GitHub ↗

Return ``True`` if this connection is closing. The connection is considered closing if either side has initiated its closing handshake or if the stream has been shut down uncleanly.

(self)

Source from the content-addressed store, hash-verified

1280 self.ping_callback = None
1281
1282 def is_closing(self) -> bool:
1283 """Return ``True`` if this connection is closing.
1284
1285 The connection is considered closing if either side has
1286 initiated its closing handshake or if the stream has been
1287 shut down uncleanly.
1288 """
1289 return self.stream.closed() or self.client_terminated or self.server_terminated
1290
1291 @property
1292 def ping_interval(self) -> Optional[float]:

Callers 1

periodic_pingMethod · 0.95

Calls 1

closedMethod · 0.80

Tested by

no test coverage detected