Re: telnet.read_until() from telnetlib

2005-09-01 Thread [EMAIL PROTECTED]
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

Re: telnet.read_until() from telnetlib

2005-08-31 Thread Jacek Popławski
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

Re: telnet.read_until() from telnetlib

2005-08-30 Thread [EMAIL PROTECTED]
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,

Re: telnet.read_until() from telnetlib

2005-08-29 Thread Jacek Popławski
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

Re: telnet.read_until() from telnetlib

2005-08-29 Thread Jacek Popławski
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

Re: telnet.read_until() from telnetlib

2005-08-26 Thread [EMAIL PROTECTED]
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

Re: telnet.read_until() from telnetlib

2005-08-26 Thread [EMAIL PROTECTED]
Czesc Jacek: Please post the minimum code necessary to duplicate the problem. Dzieki, Derek Wilson -- http://mail.python.org/mailman/listinfo/python-list

telnet.read_until() from telnetlib

2005-08-26 Thread Jacek Popławski
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