Open oskrdt opened 4 years ago
@oskrdt yep the design of it doesn't take into account very big output.
it should be kind of cyclic buffer.
Anyhow PRs are welcomed
Please check 0.3.0, should have a fix for this. If it works for you we can close this
I'm working with @oskrdt in the same project checking this, and it seems that we're blocked by #67 since the latest version I can gather is 0.2.9 instead of 0.3.0
I tried both python3 -m pip install --upgrade paramiko-expect
and python3 -m pip install git+https://github.com/fgimian/paramiko-expect.git
and I can't get the latest version (0.3.0)
I have a process that is monitoring the install/boot progress with paramiko expect, but when monitoring a specific very large system that produces a huge amount of output per minute, it seems that
expect
method hangs and it's not even failing for the timeout as it should. When debugging, I realized that the condition where is trying to match the regex strings is rapidly increasing the time it takes to execute.So it seems the time it takes to look for a match on
self.current_output
is taking more than the time the buffer gets filled up again.