Opened 15 years ago

Closed 15 years ago

#9790 closed (invalid)

404 message is displayed if a view takes longer than 30 seconds to finish

Reported by: ErikW Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords: timeout, 404
Cc: erik@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

My views are timing out and redirecting to a 404 page if the function takes longer than about 30 seconds to finish. I've done a tone of Google searches, and haven't found any mention of a setting to change this behavior (ie increase the threshold from say 30 seconds to 1 minute).

I understand that most long running processes should be run in the background via a cronjob or similar. However, it would be nice to have the option of tweaking the timeout length in certain instances.

Change History (1)

comment:1 by Malcolm Tredinnick, 15 years ago

Resolution: invalid
Status: newclosed

Django isn't doing this. You can confirm that, for example, by putting an infinite loop into a view and viewing it through the development server. Django passes control to a view and waits until the view returns and then sends the response back to the caller, all within a single thread.

If the redirection is happening on the server side (as opposed to your browser simply timing out), then it's a webserver configuration thing and changing it will depend on the server you're using. You might like to post some details of your configuration on the django-users list to see if somebody can spot the change that needs to be made. But there's nothing in Django that monitors the request time and changes the response if things are taking too long.

Note: See TracTickets for help on using tickets.
Back to Top