You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gr...@apache.org on 2003/06/11 19:46:26 UTC
cvs commit: httpd-2.0/server core.c
gregames 2003/06/11 10:46:26
Modified: server core.c
Log:
core_output_filter: don't split the brigade after a FLUSH bucket if it's the
last bucket. This prevents creating unneccessary empty brigades which may
not be destroyed until the end of a keepalive connection.
Submitted by: Juan Rivera <Ju...@NO_SPAM.citrix.com>
Revision Changes Path
1.238 +3 -1 httpd-2.0/server/core.c
Index: core.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/core.c,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -r1.237 -r1.238
--- core.c 29 May 2003 23:04:32 -0000 1.237
+++ core.c 11 Jun 2003 17:46:25 -0000 1.238
@@ -3861,7 +3861,9 @@
break;
}
if (APR_BUCKET_IS_FLUSH(e)) {
- more = apr_brigade_split(b, APR_BUCKET_NEXT(e));
+ if (e != APR_BRIGADE_LAST(b)) {
+ more = apr_brigade_split(b, APR_BUCKET_NEXT(e));
+ }
break;
}