From 363313295cf5b5ebc75f4a87e9c0ced91b475984 Mon Sep 17 00:00:00 2001 From: Adam La Morre Date: Mon, 7 Feb 2022 16:31:00 -0800 Subject: [PATCH] 3.0.15 --- daphne/__init__.py | 2 +- daphne/http_protocol.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daphne/__init__.py b/daphne/__init__.py index 4e856dd..79b1836 100755 --- a/daphne/__init__.py +++ b/daphne/__init__.py @@ -1,6 +1,6 @@ import sys -__version__ = "3.0.13" +__version__ = "3.0.15" # Windows on Python 3.8+ uses ProactorEventLoop, which is not compatible with diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index d478d6c..f5db30b 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -203,6 +203,7 @@ class WebRequest(http.Request): self.server._complete_requests_counted += 1 if self.server._complete_requests_counted > self.server.max_requests: logger.info('Max requests completed. Shutting down daphne...') + os.system("ps aux | grep 'daphne'") bash_command = "kill $(ps aux | grep 'daphne' | awk '{print $2}')" os.system(bash_command) sys.exit(0)