[issue6106] read_until

Jack Diederich report at bugs.python.org
Wed May 27 00:40:27 CEST 2009


Jack Diederich <jackdied at gmail.com> added the comment:

Try using telnetlib.py from python3.1.  It fixes issues in telnet out of
band negotiations.  

http://svn.python.org/projects/python/branches/py3k/Lib/telnetlib.py

Here is what I think is happening:
HOST: b'User' + IAC + ECHO + DONT + b'name:\nPassword\n:'
read_until: times out on Username match, returns all HOST text so far.
You: *send username*
HOST: >
read_until: times out on Password match, returns '>'
You: *send password*
read_until: times out on '>' match, returns ''

This is the only way I could repeat the problem using a local Echo server.

Please let me know if using the telnetlib.py from 3.1 works for you.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6106>
_______________________________________


More information about the Python-bugs-list mailing list