From 3b4801527dc5430bb072ff843f182992c4f6c37c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 12 Jun 2017 10:06:25 +0800 Subject: [PATCH] Fixed #123: Add default websocket timeout. --- daphne/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daphne/cli.py b/daphne/cli.py index 7710ea7..b27cb06 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -39,14 +39,14 @@ class CommandLineInterface(object): self.parser.add_argument( '--websocket_timeout', type=int, - help='max time websocket connected. -1 to infinite.', + help='Maximum time to allow a websocket to be connected. -1 for infinite.', default=None, ) self.parser.add_argument( '--websocket_connect_timeout', type=int, - help='max time to refuse establishing connection. -1 to infinite', - default=None, + help='Maximum time to allow a connection to handshake. -1 for infinite', + default=5, ) self.parser.add_argument( '-u',