[issue14556] telnetlib Telnet.expect fails with timeout=0
R. David Murray
report at bugs.python.org
Thu Apr 12 15:04:14 CEST 2012
R. David Murray <rdmurray at bitdance.com> added the comment:
Ah, so there are actually two timeouts of interest. One is "time out if there is no more data for X seconds", and the other is "time out if there is no match for X seconds". It used to do the former, now it does the latter.
I think you get the former by calling socket.settimeout() and then using a blocking call for the expect.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14556>
_______________________________________
More information about the Python-bugs-list
mailing list