Skip to content
This repository
Browse code

Merge pull request #2422 from pvolok/note_in_streamedresponse

Add note about buffering in StreamedResponse.
  • Loading branch information...
commit 678daba029381e75c3b1043c66928570381fbfed 2 parents d9becd2 + 4ec843f
Ryan Weaver authored April 03, 2013
12  components/http_foundation/introduction.rst
Source Rendered
@@ -387,6 +387,18 @@ represented by a PHP callable instead of a string::
387 387
     });
388 388
     $response->send();
389 389
 
  390
+.. note::
  391
+
  392
+    The ``flush()`` function does not flush bufferring. So if
  393
+    ``ob_start()`` has been called before or php.ini option
  394
+    ``output_buffering`` is not disabled (which is on some
  395
+    installations by default), you have to call ``ob_flush()`` before
  396
+    ``flush()``.
  397
+
  398
+    But not only php can buffer output. Your web-server can also do
  399
+    it. Even more, if you use fastcgi, buffering can't be disabled at
  400
+    all.
  401
+
390 402
 Downloading Files
391 403
 ~~~~~~~~~~~~~~~~~
392 404
 

0 notes on commit 678daba

Please sign in to comment.
Something went wrong with that request. Please try again.