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)