You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the timeout is set to 1 in LibsshSession(timeout=1), libssh
returns SSH_AUTH_AGAIN but pylibssh does not handle SSH_AUTH_AGAIN
and therefore no exception is raised here:
with pytest.raises(SSHAuthenticationError):
client.ssh("user1", "Wrong").connect()
Setting the timeout to 1 is necessary to allow the timeout set in
client.host.conn.run(..., timeout=X)
to work as expected. This is due to code becoming blocked in libssh
which is C not Python, but the Python signal is delayed until we get
back to the Python code
0 commit comments