Existing tests pass

This commit is contained in:
Adam La Morre 2022-02-01 21:10:58 -08:00
parent 5737a83dc0
commit a75b67b395
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ class CommandLineInterface:
default=False,
action="store",
)
self.arg_proxy_port = self.parser.add_argument(
self.max_requests = self.parser.add_argument(
"--max-requests",
dest="max_requests",
help="The maximum number of requests a worker will process before restarting.",

View File

@ -57,7 +57,7 @@ class Server:
application_close_timeout=10,
ready_callable=None,
server_name="Daphne",
max_requests=0,
max_requests=float('inf'),
# Deprecated and does not work, remove in version 2.2
ws_protocols=None,
):