reiver / go-telnet

Package telnet provides TELNET and TELNETS client and server implementations, for the Go programming language, in a style similar to the "net/http" library that is part of the Go standard library, including support for "middleware"; TELNETS is secure TELNET, with the TELNET protocol over a secured TLS (or SSL) connection.
https://godoc.org/github.com/reiver/go-telnet
MIT License
267 stars 83 forks source link

Replace bufio-based data reader with a state machine. #9

Open fluffle opened 6 years ago

fluffle commented 6 years ago

Hi!

I tried to use your code and it kept doing blocking reads. Here's a fix. I only gofmt'd the files I changed, and I kept the format changes in a separate commit to make reviewing this change easier.

Cheers, --alex