(self, exc, message='Fatal error on transport')
| 876 | self._server._detach(self) |
| 877 | |
| 878 | def _fatal_error(self, exc, message='Fatal error on transport'): |
| 879 | # Should be called from exception handler only. |
| 880 | if isinstance(exc, OSError): |
| 881 | if self._loop.get_debug(): |
| 882 | logger.debug("%r: %s", self, message, exc_info=True) |
| 883 | else: |
| 884 | self._loop.call_exception_handler({ |
| 885 | 'message': message, |
| 886 | 'exception': exc, |
| 887 | 'transport': self, |
| 888 | 'protocol': self._protocol, |
| 889 | }) |
| 890 | self._force_close(exc) |
| 891 | |
| 892 | def _force_close(self, exc): |
| 893 | if self._conn_lost: |
no test coverage detected