mirror of https://github.com/huashengdun/webssh
Merge 5be03fdc40
into 1cf19c7186
commit
2c34ece214
|
@ -452,7 +452,7 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
|
|||
logging.info('Connecting to {}:{}'.format(*dst_addr))
|
||||
|
||||
try:
|
||||
ssh.connect(*args, timeout=options.timeout)
|
||||
ssh.connect(*args, timeout=options.timeout, auth_timeout=options.auth_timeout)
|
||||
except socket.error:
|
||||
raise ValueError('Unable to connect to {}:{}'.format(*dst_addr))
|
||||
except paramiko.BadAuthenticationType:
|
||||
|
|
|
@ -44,6 +44,7 @@ separated by comma;
|
|||
'*': wildcard policy, matches any domain, allowed in debug mode only.''')
|
||||
define('wpintvl', type=float, default=0, help='Websocket ping interval')
|
||||
define('timeout', type=float, default=3, help='SSH connection timeout')
|
||||
define('auth_timeout', type=int, default=120, help='SSH connection auth timeout')
|
||||
define('delay', type=float, default=3, help='The delay to call recycle_worker')
|
||||
define('maxconn', type=int, default=20,
|
||||
help='Maximum live connections (ssh sessions) per client')
|
||||
|
|
Loading…
Reference in New Issue