Merge lp:~elachuni/rnr-server/app-timeout into lp:rnr-server
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Łukasz Czyżykowski | ||||
Approved revision: | 214 | ||||
Merged at revision: | 214 | ||||
Proposed branch: | lp:~elachuni/rnr-server/app-timeout | ||||
Merge into: | lp:rnr-server | ||||
Diff against target: |
268 lines (+140/-8) 8 files modified
django_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) |
||||
To merge this branch: | bzr merge lp:~elachuni/rnr-server/app-timeout | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ratings and Reviews Developers | Pending | ||
Review via email: mp+98748@code.launchpad.net |
Commit message
Added SoftTimeoutMidd
Description of the change
This branch adds a "Soft Timeout" middleware to keep an oops report when a request exceeds a configurable length of time. The oops report will include the total time used by the request, and all sql queries performed.
To allow QA to test the timeout middleware I also provided a 'delay' view that can delay the response for any amount before returning.
While I was adding tests for the middleware I found that ExceptionMiddle