mirror of
https://github.com/django/daphne.git
synced 2024-11-25 17:23:43 +03:00
Fixed #123: Add default websocket timeout.
This commit is contained in:
parent
c5385fb253
commit
3b4801527d
|
@ -39,14 +39,14 @@ class CommandLineInterface(object):
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
'--websocket_timeout',
|
'--websocket_timeout',
|
||||||
type=int,
|
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,
|
default=None,
|
||||||
)
|
)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
'--websocket_connect_timeout',
|
'--websocket_connect_timeout',
|
||||||
type=int,
|
type=int,
|
||||||
help='max time to refuse establishing connection. -1 to infinite',
|
help='Maximum time to allow a connection to handshake. -1 for infinite',
|
||||||
default=None,
|
default=5,
|
||||||
)
|
)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
'-u',
|
'-u',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user