You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2024/05/13 15:08:53 UTC
svn commit: r1917701 - /httpd/test/framework/trunk/c-modules/test_pass_brigade/mod_test_pass_brigade.c
Author: jorton
Date: Mon May 13 15:08:53 2024
New Revision: 1917701
URL: http://svn.apache.org/viewvc?rev=1917701&view=rev
Log:
mod_test_pass_brigade:
- do send FLUSH after EOS (not necessary but correct)
- add debugging log before calling ap_pass_brigade()
- pass to the first filter on the r->output_filters chain
not the second one (->next) - not obvious why this was
done, doesn't affect the test output, has been there since
2001, likely a mistake
Modified:
httpd/test/framework/trunk/c-modules/test_pass_brigade/mod_test_pass_brigade.c
Modified: httpd/test/framework/trunk/c-modules/test_pass_brigade/mod_test_pass_brigade.c
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/c-modules/test_pass_brigade/mod_test_pass_brigade.c?rev=1917701&r1=1917700&r2=1917701&view=diff
==============================================================================
--- httpd/test/framework/trunk/c-modules/test_pass_brigade/mod_test_pass_brigade.c (original)
+++ httpd/test/framework/trunk/c-modules/test_pass_brigade/mod_test_pass_brigade.c Mon May 13 15:08:53 2024
@@ -60,20 +60,18 @@ static int test_pass_brigade_handler(req
bucket = apr_bucket_eos_create(c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, bucket);
-#if 0
- /* ###### A FLUSH should not be strictly necessary here
- * but inserting one apears to work around intermittent
- * failures when running t/apache/pass_brigade.t under
- * worker. */
bucket = apr_bucket_flush_create(c->bucket_alloc);
- APR_BRIGADE_INSERT_TAIL(bb, bucket);
-#endif
+ APR_BRIGADE_INSERT_TAIL(bb, e);
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
"[mod_test_pass_brigade] sending EOS");
}
- status = ap_pass_brigade(r->output_filters->next, bb);
+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
+ "[mod_test_pass_brigade] passing to output filter %s",
+ r->output_filters->frec->name);
+
+ status = ap_pass_brigade(r->output_filters, bb);
if (status != APR_SUCCESS) {
apr_brigade_destroy(bb);