Closed sethm closed 5 years ago
Please hold off on merging this, if you're looking at it. I need to write a new test, because I appear to have broken normal IAC command handling. Oh bother.
Update: I was wrong, further tests prove that I did not break normal IAC command handling. I only thought I had, because of user error (I accidentally set the buffer size to 1 byte when creating my Telnet object, which is really not useful at all :) )
Hello @sethm ! I just check your commits. You found a really big bug in my code. I appreciate your contribution. Thanks for your help :)
Very happy that I could help! This is a great crate, thank you for writing it.
I noticed that IAC character escaping (double
0xFF
) was not working quite correctly. The buffer in the event returned after the escaped IAC character was re-copying data becausedata_start
was not being updated.I've added a test to
lib.rs
to verify the fix.