Django HTTP Connection Timeout

I have a Django + mod_wsgi + Apache server. I need to change the default HTTP connection timeout. There is a Timeout directive in the apache configuration, but it does not work.

How can I customize this?

+4
source share
2 answers

I solved this problem:

python manage.py runningerver --http_timeout 120

+1
source

There WSGIDaemonProcessare several timeout options in the mod_wsgi directive (I think an inactive timeout can help):

inactivity-timeout = sss (2.0 +)

, daemon , daemon . , , . , , , , , , - .

deadlock-timeout = sss (2.0 +)

, Python GIL. - 300 . Python C, Python GIL .

- = SSS

, , , SIGINT . - , , Python . , - 5 . , - , , Apache . - Apache 3 .

WSGIDaemonProcess:

mod_wsgi

0

Source: https://habr.com/ru/post/1526599/


All Articles