]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* mod_htt2: fixed an inconsistency in main connection io state after the connection
authorStefan Eissing <icing@apache.org>
Fri, 16 Jun 2023 08:18:19 +0000 (08:18 +0000)
committerStefan Eissing <icing@apache.org>
Fri, 16 Jun 2023 08:18:19 +0000 (08:18 +0000)
   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

index 5606d52bfa9d6535cb623277751a31d070354592..c09e2deb40ad096ceedc095dd1add880c9840be2 100644 (file)
@@ -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;
 }