diff --git a/scrapli/transport/plugins/asynctelnet/transport.py b/scrapli/transport/plugins/asynctelnet/transport.py index 4e617518..a9673e6f 100644 --- a/scrapli/transport/plugins/asynctelnet/transport.py +++ b/scrapli/transport/plugins/asynctelnet/transport.py @@ -110,16 +110,11 @@ def _handle_control_chars(self) -> None: Raises: ScrapliConnectionNotOpened: if connection is not opened for some reason - ScrapliConnectionNotOpened: if we read an empty byte string from the reader -- this - indicates the server sent an EOF -- see #142 """ if not self.stdout: raise ScrapliConnectionNotOpened - if self._raw_buf.find(NULL) != -1: - raise ScrapliConnectionNotOpened("server returned EOF, connection not opened") - index = self._raw_buf.find(IAC) if index == -1: self._cooked_buf = self._raw_buf diff --git a/scrapli/transport/plugins/telnet/transport.py b/scrapli/transport/plugins/telnet/transport.py index 05d6fcaa..4229f719 100644 --- a/scrapli/transport/plugins/telnet/transport.py +++ b/scrapli/transport/plugins/telnet/transport.py @@ -141,16 +141,11 @@ def _handle_control_chars(self) -> None: Raises: ScrapliConnectionNotOpened: if connection is not opened for some reason - ScrapliConnectionNotOpened: if we read an empty byte string from the reader -- this - indicates the server sent an EOF -- see #142 """ if not self.socket: raise ScrapliConnectionNotOpened - if self._raw_buf.find(NULL) != -1: - raise ScrapliConnectionNotOpened("server returned EOF, connection not opened") - index = self._raw_buf.find(IAC) if index == -1: self._cooked_buf = self._raw_buf