Implement option --idle-timeout

server exits after TIMEOUT seconds if there are no active connections
This commit is contained in:
Aric Stewart
2012-08-31 09:24:09 -05:00
parent 17175afd73
commit 9348dd5208
2 changed files with 15 additions and 1 deletions
+3
View File
@@ -308,6 +308,9 @@ def websockify_init():
help="handle a single WebSocket connection and exit")
parser.add_option("--timeout", type=int, default=0,
help="after TIMEOUT seconds exit when not connected")
parser.add_option("--idle-timeout", type=int, default=0,
help="server exits after TIMEOUT seconds if there are no "
"active connections")
parser.add_option("--cert", default="self.pem",
help="SSL certificate file")
parser.add_option("--key", default=None,