Django http connection timeout
I solved this problem with:
python manage.py runserver --http_timeout 120
Bojan Radojevic
Since I was 12, I'm trying to find solution for a problem, not other way around. So I never, really, made some simple game or app just to make "something" working, apart of Hallo World of course. Basically all of my apps are done to solve some real problem, so I evolved goals oriented type of thinking. My philosophy is: simple is better than complex, use the right tool for the job, do one thing and do it well, linux over windows. Code should be self explanatory, no encrypted one liners, naming is important, comment "why" over "how".
Updated on June 07, 2022Comments
-
Bojan Radojevic almost 2 years
I have Django + mod_wsgi + Apache server. I need to change default HTTP connection timeout. There is Timeout directive in apache config but it's not working.
How can I set this up?
-
Bojan Radojevic about 10 yearsI think this will kill connection on timeout. I don't want that. I need to have connection open as long as django finish processing.
-
ndpu about 10 years@ADRENALIN mm, didnt understand what you mean.. What you want to happen on server side when request process time exceeds timeout setting time?
-
Bojan Radojevic about 10 yearsI just want to extend server timeout from 60s to 120s. After 120s it is okay for timeout to occur.
-
Graham Dumpleton over 6 yearsThis answer has got nothing to do with the question. They were not using the Django development server. They were using Apache/mod_wsgi.
-
Tony Montana over 3 yearsHey, I am using Django 3.0.3 version and when I pass
--http_timeout
option, I am gettingerror: recognized argument
error. Any idea how to fix this error?