Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/SSHLibrary/abstractclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,10 @@ def _read_until(self, matcher, expected, timeout=None):
timeout = TimeEntry(timeout) if timeout else self.config.get('timeout')
max_time = time.time() + timeout.value
while time.time() < max_time:
output += self.read_char()
output += self.read()
if matcher(output):
return output
time.sleep(.00001) # Release GIL so paramiko I/O thread can run
raise SSHClientException("No match found for '%s' in %s\nOutput:\n%s."
% (expected, timeout, output))

Expand Down