Return ``True`` if exc is ECONNRESET or equivalent. May be overridden in subclasses.
(self, exc: BaseException)
| 1042 | self.io_loop.update_handler(self.fileno(), self._state) |
| 1043 | |
| 1044 | def _is_connreset(self, exc: BaseException) -> bool: |
| 1045 | """Return ``True`` if exc is ECONNRESET or equivalent. |
| 1046 | |
| 1047 | May be overridden in subclasses. |
| 1048 | """ |
| 1049 | return ( |
| 1050 | isinstance(exc, (socket.error, IOError)) |
| 1051 | and errno_from_exception(exc) in _ERRNO_CONNRESET |
| 1052 | ) |
| 1053 | |
| 1054 | |
| 1055 | class IOStream(BaseIOStream): |
no test coverage detected