Last modified: 2013-06-17 19:00:33 UTC
We currently write out results straight to the response, which makes it impossible to properly handle and report errors once the headers are sent. Instead we should buffer the full output before writing it to the response. This is especially important as we are now caching out output aggressively, and we don't want to cache partial output. The VE also gets a truncated 200 OK response on such mid-write failures which will surely mess up round-tripping.
Related URL: https://gerrit.wikimedia.org/r/68818 (Gerrit Change I944558d265b6329a87499ef9a38b4c5b9e34ca8f)
https://gerrit.wikimedia.org/r/68818 (Gerrit Change I944558d265b6329a87499ef9a38b4c5b9e34ca8f) | change APPROVED and MERGED [by jenkins-bot]