如何增加结束U​​WSGI连接的时间

时间:2017-10-30 08:50:40

标签: python django uwsgi

现在我的每个连接都在60秒后关闭。我想将这个时间增加到300秒。

要做到这一点,我改变了我的ini文件:

[uwsgi]
 # Django-related settings
 # the base directory (full path)
 chdir           = /home/root/djangoApp
 # Django's wsgi file
 module=djangoApp.wsgi:application

 # process-related settings
 # master
 master          = true
 # maximum number of worker processes
 processes       = 10
 # the socket (use the full path to be safe
 http          = 127.0.0.1:8000
 # ... with appropriate permissions - may be needed
 chmod-socket    = 664 
 # clear environment on exit
 vacuum          = true

 protocol = uwsgi
 harakiri = 300
 http-timeout = 300

但它不起作用,仍然会在60秒后杀死该过程。

我将非常感谢您的帮助,

由于

0 个答案:

没有答案