You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/10/02 15:41:45 UTC
cvs commit: httpd-2.0/server protocol.c
trawick 2002/10/02 06:41:45
Modified: . CHANGES
server protocol.c
Log:
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.
Revision Changes Path
1.944 +5 -0 httpd-2.0/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/httpd-2.0/CHANGES,v
retrieving revision 1.943
retrieving revision 1.944
diff -u -r1.943 -r1.944
--- CHANGES 1 Oct 2002 17:54:14 -0000 1.943
+++ CHANGES 2 Oct 2002 13:41:44 -0000 1.944
@@ -1,5 +1,10 @@
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]
1.119 +3 -0 httpd-2.0/server/protocol.c
Index: protocol.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- protocol.c 25 Sep 2002 01:51:13 -0000 1.118
+++ protocol.c 2 Oct 2002 13:41:45 -0000 1.119
@@ -1256,6 +1256,9 @@
*/
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);