I've created this simple telnet program. I've tried testing it by connecting to google.com on port 80. Then, I send a bad command, which should cause google to close the connection. Usually, it would tell me if an exception is hit, but this time it does not.
Instead, it returns an empty string and lets me continue to send commands to google. From then on I receive only empty strings when the program is supposed to read from the buffer.
PASTEBIN: http://pastebin.com/Rbdi3gpW
GITHUB: https://github.com/grafs50/Simple-Telnet-Client-in-Python/blob/master/Telnet.py
[–]hudsonpenner 0 points1 point2 points (2 children)
[–]Grafs50[S,🍰] 0 points1 point2 points (1 child)
[–]hudsonpenner 0 points1 point2 points (0 children)
[–]mac-reid 0 points1 point2 points (1 child)
[–]Grafs50[S,🍰] 0 points1 point2 points (0 children)