J
Jacek =?iso-8859-2?Q?Pop=B3awski?=
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.
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.