Merge lp:~tcole/wsgi-oops/result-iteration-fixes into lp:wsgi-oops
Proposed by
Tim Cole
Status: | Merged |
---|---|
Approved by: | Roman Yepishev |
Approved revision: | 56 |
Merged at revision: | 52 |
Proposed branch: | lp:~tcole/wsgi-oops/result-iteration-fixes |
Merge into: | lp:wsgi-oops |
Diff against target: |
144 lines (+83/-3) 4 files modified
canonical/oops/serializer.py (+8/-1) canonical/oops/tests/test_wsgi.py (+63/-0) canonical/oops/tests/testcase.py (+1/-1) canonical/oops/wsgi.py (+11/-1) |
To merge this branch: | bzr merge lp:~tcole/wsgi-oops/result-iteration-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Roman Yepishev (community) | Approve | ||
John O'Brien (community) | Approve | ||
Philip Fibiger (community) | Approve | ||
Review via email: mp+29307@code.launchpad.net |
Commit message
Properly handle closing of the result generator
Description of the change
This gracefully handles the WSGI container closing the result generator. Ordinarily this should only happen when the client drops the connection before we've finished writing all the data to it. This fix prevents oopses in such cases.
To post a comment you must log in.
looks good.