Description
the code in Telnet::_spyRead has a bug that results in a 'reversed' EOL.
I'm expecting SocketClient.NETASCII_EOL (\r\n) but I'm getting '\n\r'.
the code
void _spyRead(int ch) { OutputStream spy = spyStream; if (spy != null) { try { if (ch != '\r') { spy.write(ch); if (ch == '\n') { spy.write('\r'); } spy.flush(); } } catch (IOException e) { spyStream = null; } } }
should be replaced by
void _spyRead(int ch) { OutputStream spy = spyStream; if (spy != null) { try { if (ch != '\r') { if (ch == '\n') { spy.write('\r'); } spy.write(ch); spy.flush(); } } catch (IOException e) { spyStream = null; } } }