mirror of
https://github.com/django/daphne.git
synced 2025-08-02 17:50:09 +03:00
3.0.15
This commit is contained in:
parent
03f9c2298b
commit
363313295c
|
@ -1,6 +1,6 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
__version__ = "3.0.13"
|
__version__ = "3.0.15"
|
||||||
|
|
||||||
|
|
||||||
# Windows on Python 3.8+ uses ProactorEventLoop, which is not compatible with
|
# 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
|
self.server._complete_requests_counted += 1
|
||||||
if self.server._complete_requests_counted > self.server.max_requests:
|
if self.server._complete_requests_counted > self.server.max_requests:
|
||||||
logger.info('Max requests completed. Shutting down daphne...')
|
logger.info('Max requests completed. Shutting down daphne...')
|
||||||
|
os.system("ps aux | grep 'daphne'")
|
||||||
bash_command = "kill $(ps aux | grep 'daphne' | awk '{print $2}')"
|
bash_command = "kill $(ps aux | grep 'daphne' | awk '{print $2}')"
|
||||||
os.system(bash_command)
|
os.system(bash_command)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user