mirror of
https://github.com/django/daphne.git
synced 2025-07-31 17:29:44 +03:00
3.0.15
This commit is contained in:
parent
03f9c2298b
commit
363313295c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user