diff options
| author | Jaap Roes <jaap@eight.nl> | 2013-06-03 15:53:04 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-06-12 20:57:21 +0200 |
| commit | 60353458ae7105ea943dc425954403c581b05255 (patch) | |
| tree | 43d0e51d51fc533b2260e1097d40b4bd3537cae7 /docs/ref | |
| parent | b75f1f3d27d06e5fe4fdcc8e74ec3e7caeff7704 (diff) | |
[1.5.x] Warned that `request_finished` isn't sent by some buggy setups.
Older versions of uWSGI and Sentry's middleware do not adhere to
the WSGI spec and cause the `request_finished` signal to never
fire. Added notes to the appropriate places in the docs.
Fixed #20537.
Backport of 3ce1d30.
Conflicts:
docs/howto/deployment/wsgi/index.txt
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/signals.txt | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/ref/signals.txt b/docs/ref/signals.txt index 37477bb5b0..17c9865138 100644 --- a/docs/ref/signals.txt +++ b/docs/ref/signals.txt @@ -447,17 +447,20 @@ request_finished Sent when Django finishes processing an HTTP request. -.. note:: +.. versionchanged:: 1.5 - When a view returns a :ref:`streaming response <httpresponse-streaming>`, - this signal is sent only after the entire response is consumed by the - client (strictly speaking, by the WSGI gateway). + Before Django 1.5, this signal was sent before delivering content to the + client. In order to accommodate :ref:`streaming responses + <httpresponse-streaming>`, it is now sent after the response has been fully + delivered to the client. -.. versionchanged:: 1.5 +.. note:: - Before Django 1.5, this signal was fired before sending the content to the - client. In order to accomodate streaming responses, it is now fired after - sending the content. + Some WSGI servers and middleware do not always call ``close`` on the + response object after handling a request, most notably uWSGI prior to 1.2.6 + and Sentry's error reporting middleware up to 2.0.7. In those cases this + signal isn't sent at all. This can result in idle connections to database + and memcache servers. Arguments sent with this signal: |
