then you are using a regex expression that is a wildcard match, and
that is non-deterministic.
--
http://mail.python.org/mailman/listinfo/python-list
my newsreader told me that [EMAIL PROTECTED] wrote:
> "If end of file is found and no text was read, raise EOFError.
> Otherwise, when nothing matches, return (-1, None, text) where text is
> the text received so far (may be the empty string if a timeout
> happened). "
What if:
- exception has not
but the 'expect' gives you more details about the failure... read the
documentation on telnet objects here:
"http://docs.python.org/lib/telnet-objects.html";.
It says this specifically:
"If end of file is found and no text was read, raise EOFError.
Otherwise, when nothing matches, return (-1, None,
I have same problem with expect :-(
I am calling:
l=[expected]
result=self.telnet.expect(l,timeout)
it works in most cases, but sometimes (with exacly same "expected" value) it
returns -1,Nil,"some text"
the point is, that:
- connection is still active, so it should read more!
- it doesn't wait
my newsreader told me that [EMAIL PROTECTED] wrote:
> Please post the minimum code necessary to duplicate the problem.
It's impossible, because I am writting performance tests for big commercial
project, I am trying to understand why they sometime fail. By definition of
"read_until()" it should re
after doing some research, I would suggest trying self.telnet.expect().
This will give you more data about the cause of the failures.
--
http://mail.python.org/mailman/listinfo/python-list
Czesc Jacek:
Please post the minimum code necessary to duplicate the problem.
Dzieki,
Derek Wilson
--
http://mail.python.org/mailman/listinfo/python-list
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!
ex