|
@@ -498,17 +498,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:
|
|
|
|