Django http connection timeout

13,934

I solved this problem with:

python manage.py runserver --http_timeout 120

Share:
13,934
Bojan Radojevic
Author by

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, 2022

Comments

  • Bojan Radojevic
    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
    Bojan Radojevic about 10 years
    I 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
    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
    Bojan Radojevic about 10 years
    I just want to extend server timeout from 60s to 120s. After 120s it is okay for timeout to occur.
  • Graham Dumpleton
    Graham Dumpleton over 6 years
    This 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
    Tony Montana over 3 years
    Hey, I am using Django 3.0.3 version and when I pass --http_timeout option, I am getting error: recognized argument error. Any idea how to fix this error?