I have strange problem with telnetlib.
r=self.telnet.read_until(expected,timeout)
It works in most cases (hundrets of iterations), but sometimes "r" doesn't
contain "expected", first I thought that server is responding incorrectly, then
I realized that read_until doesn't wait timeout seconds!
example output (value of r):
"#"
while I was expecting "config#"
value of timeout is 20
PS. Python 2.4.1, Cygwin.
--
Free Software - find interesting programs and change them
NetHack - meet interesting creatures, kill them and eat their bodies
Usenet - meet interesting people from all over the world and flame them
Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net