Commit 19a631bb authored by Bruno Soares's avatar Bruno Soares
Browse files

Change webterminal inactivity time from 5 minutes to 1 hour

parent 8d892b04
......@@ -50,7 +50,7 @@ def posix_shell(chan, webterminal, log_name=None, width=90, height=40):
while True:
now = time.time()
delay = now - last_write_time['last_activity_time']
if delay > 300:
if delay > 3600:
webterminal.send(text_data=json.dumps(['stdout', 'Connection closed due to inactivity!']))
chan.close()
break
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment