mirror of
https://github.com/django/daphne.git
synced 2025-07-15 18:32:18 +03:00
Existing tests pass
This commit is contained in:
parent
5737a83dc0
commit
a75b67b395
|
@ -148,7 +148,7 @@ class CommandLineInterface:
|
||||||
default=False,
|
default=False,
|
||||||
action="store",
|
action="store",
|
||||||
)
|
)
|
||||||
self.arg_proxy_port = self.parser.add_argument(
|
self.max_requests = self.parser.add_argument(
|
||||||
"--max-requests",
|
"--max-requests",
|
||||||
dest="max_requests",
|
dest="max_requests",
|
||||||
help="The maximum number of requests a worker will process before restarting.",
|
help="The maximum number of requests a worker will process before restarting.",
|
||||||
|
|
|
@ -57,7 +57,7 @@ class Server:
|
||||||
application_close_timeout=10,
|
application_close_timeout=10,
|
||||||
ready_callable=None,
|
ready_callable=None,
|
||||||
server_name="Daphne",
|
server_name="Daphne",
|
||||||
max_requests=0,
|
max_requests=float('inf'),
|
||||||
# Deprecated and does not work, remove in version 2.2
|
# Deprecated and does not work, remove in version 2.2
|
||||||
ws_protocols=None,
|
ws_protocols=None,
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user