telnet connection may hang when real data are mixed
Brought to you by:
crsadun
When the real data is mixed with control code that appear before and after the real data, the connection hang and the real data is never consumed.
The faulty code is :
[...]
while (in.available() > 0) {
c = this.read();
if (debugStream != null)
debugStream.print((char) c);
sb.append((char) c);
}
[...]
available() should not simply returns the status of the stream.
Attachment : Wireshark capture
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"