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)
| 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]: |