(self, exc, message='Fatal error on transport')
| 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. |
| 884 | if isinstance(exc, OSError): |
| 885 | if self._loop.get_debug(): |
| 886 | logger.debug("%r: %s", self, message, exc_info=True) |
| 887 | else: |
| 888 | self._loop.call_exception_handler({ |
| 889 | 'message': message, |
| 890 | 'exception': exc, |
| 891 | 'transport': self, |
| 892 | 'protocol': self._protocol, |
| 893 | }) |
| 894 | self._force_close(exc) |
| 895 | |
| 896 | def _force_close(self, exc): |
| 897 | if self._conn_lost: |
no test coverage detected