Add application-level timeouts
Bug #960545 reported by
Anthony Lenton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
Medium
|
Anthony Lenton |
Bug Description
haproxy is configured on production to time out if any request takes longer than 50 seconds.
At the moment if this timeout is reached for any reason, no traceback or log is left for debugging purposes, and the user receives a plain black and white 504 error.
Instead, the application should time out shortly before this time has been spent, dump a report for debugging and return a friendly error message.
Related branches
lp:~elachuni/rnr-server/app-timeout
- Ratings and Reviews Developers: Pending requested
-
Diff: 268 lines (+140/-8)8 files modifieddjango_project/config_dev/config/main.cfg (+2/-1)
src/reviewsapp/middleware/exception.py (+1/-0)
src/reviewsapp/middleware/timeouts.py (+50/-0)
src/reviewsapp/schema.py (+1/-0)
src/reviewsapp/tests/test_middleware.py (+52/-6)
src/reviewsapp/tests/test_views.py (+20/-0)
src/reviewsapp/urls.py (+2/-1)
src/reviewsapp/views/__init__.py (+12/-0)
Changed in rnr-server: | |
status: | New → Confirmed |
importance: | Undecided → Low |
importance: | Low → Wishlist |
importance: | Wishlist → Medium |
Changed in rnr-server: | |
status: | Confirmed → In Progress |
assignee: | nobody → Anthony Lenton (elachuni) |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
Changed in rnr-server: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.