File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ OPTS_MAP = {
3131 " user" : libssh.SSH_OPTIONS_USER,
3232 " port" : libssh.SSH_OPTIONS_PORT,
3333 " timeout" : libssh.SSH_OPTIONS_TIMEOUT,
34+ " timeout_usec" : libssh.SSH_OPTIONS_TIMEOUT_USEC,
3435 " knownhosts" : libssh.SSH_OPTIONS_KNOWNHOSTS,
3536 " proxycommand" : libssh.SSH_OPTIONS_PROXYCOMMAND,
3637 " key_exchange_algorithms" : libssh.SSH_OPTIONS_KEY_EXCHANGE,
@@ -175,7 +176,7 @@ cdef class Session(object):
175176 elif key == " port" :
176177 value_uint = value
177178 libssh.ssh_options_set(self ._libssh_session, key_m, & value_uint)
178- elif key == " timeout" :
179+ elif key in { " timeout" , " timeout_usec " } :
179180 value_long = value
180181 libssh.ssh_options_set(self ._libssh_session, key_m, & value_long)
181182 else :
You can’t perform that action at this time.
0 commit comments