Opened 10 years ago
Closed 10 years ago
#22901 closed Uncategorized (invalid)
Django and fastcgi upstream application timeout
Reported by: | Ola | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have been trying to compare django application deployment on nginx and apache and what I came across is an issue with fastcgi upstream application timeout. Basically the following configs return as stated:
location / { ... fastcgi_read_timeout 60 } 504 Gateway Time-out 1m
FastCGIExternalServer "/path/to/myapp.fcgi" 0.0.0.0:4080 -idle-timeout 60 500 Internal Server Error 1m
With my custom handler500 ('django.views.defaults.server_error') I am catching that as standards error, that is not really what I feel should happen. Definitely 504 Gateway Timeout is more intuitive. Although, I have no way of catching 504 with default django HttpResponse. Is there any plan to help developers to handle it better and unify it?
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I don't think so. In fact, FastCGI support has been deprecated in Django 1.7 and will be removed in Django 1.9.
Also as this seems more of a usage question, it's more appropriate to ask using the resources found in TicketClosingReasons/UseSupportChannels.