when the content-length filter realizes that no new output will
be available for a while. This helps some streaming CGIs as
well as some other dynamically-generated content.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97054
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.43
+ *) Ensure that output already available is flushed to the network
+ when the content-length filter realizes that no new output will
+ be available for a while. This helps some streaming CGIs as
+ well as some other dynamically-generated content. [Jeff Trawick]
+
*) Fix a mutex problem in mod_ssl session cache support which
could lead to an infinite loop. PR 12705
[amund.elstad@ergo.no (Amund Elstad), Jeff Trawick]
*/
if (e != APR_BRIGADE_FIRST(b)) {
apr_bucket_brigade *split = apr_brigade_split(b, e);
+ apr_bucket *flush = apr_bucket_flush_create(r->connection->bucket_alloc);
+
+ APR_BRIGADE_INSERT_TAIL(b, flush);
rv = ap_pass_brigade(f->next, b);
if (rv != APR_SUCCESS) {
apr_brigade_destroy(split);