Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about buffering in StreamedResponse. #2422

Merged
merged 1 commit into from Apr 4, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions components/http_foundation/introduction.rst
Expand Up @@ -387,6 +387,18 @@ represented by a PHP callable instead of a string::
});
$response->send();

.. note::

The ``flush()`` function does not flush bufferring. So if
``ob_start()`` has been called before or php.ini option
``output_buffering`` is not disabled (which is on some
installations by default), you have to call ``ob_flush()`` before
``flush()``.

But not only php can buffer output. Your web-server can also do
it. Even more, if you use fastcgi, buffering can't be disabled at
all.

Downloading Files
~~~~~~~~~~~~~~~~~

Expand Down