(self, _warn=warnings.warn)
| 873 | self._call_soon(self._call_connection_lost, None) |
| 874 | |
| 875 | def __del__(self, _warn=warnings.warn): |
| 876 | if self._sock is not None: |
| 877 | _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) |
| 878 | self._sock.close() |
| 879 | if self._server is not None: |
| 880 | self._server._detach(self) |
| 881 | |
| 882 | def _fatal_error(self, exc, message='Fatal error on transport'): |
| 883 | # Should be called from exception handler only. |