From e132dba353486bf864d57993770bc5f5deb2348f Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 16 Jun 2023 08:18:19 +0000 Subject: [PATCH] * mod_htt2: fixed an inconsistency in main connection io state after the connection write encountered an error. Related to PR 66649. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910441 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_c1_io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/http2/h2_c1_io.c b/modules/http2/h2_c1_io.c index 5606d52bfa9..c09e2deb40a 100644 --- a/modules/http2/h2_c1_io.c +++ b/modules/http2/h2_c1_io.c @@ -294,8 +294,6 @@ static apr_status_t pass_output(h2_c1_io *io, int flush) rv = ap_pass_brigade(c->output_filters, io->output); if (APR_SUCCESS != rv) goto cleanup; - - io->buffered_len = 0; io->bytes_written += (apr_size_t)bblen; if (io->write_size < WRITE_SIZE_MAX @@ -323,6 +321,7 @@ cleanup: c->id, (long)bblen); } apr_brigade_cleanup(io->output); + io->buffered_len = 0; io->is_passing = 0; return rv; } -- 2.47.2