]> granicus.if.org Git - php/commitdiff
remove flush from standard unbuffered write.
authorIan Holsman <ianh@php.net>
Thu, 27 Mar 2003 04:35:44 +0000 (04:35 +0000)
committerIan Holsman <ianh@php.net>
Thu, 27 Mar 2003 04:35:44 +0000 (04:35 +0000)
people requiring a flush can turn implicit flush on.
Thanks ilia for benchmarking this!

sapi/apache2handler/sapi_apache2.c

index b1fedab666fdeb996c42713292500638196e1271..2fadfedeaf1e8ae7600a0ed6a3d321a404131e94 100644 (file)
@@ -86,14 +86,6 @@ php_apache_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
                                                 r->connection->bucket_alloc);
        APR_BRIGADE_INSERT_TAIL(brigade, bucket);
 
-       /* Add a Flush bucket to the end of this brigade, so that
-        * the transient buckets above are more likely to make it out
-        * the end of the filter instead of having to be copied into
-        * someone's setaside.
-        */
-       bucket = apr_bucket_flush_create(r->connection->bucket_alloc);
-       APR_BRIGADE_INSERT_TAIL(brigade, bucket);
-       
        if (ap_pass_brigade(r->output_filters, brigade) != APR_SUCCESS) {
                php_handle_aborted_connection();
        }