You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2021/11/11 11:16:23 UTC

svn commit: r1894949 - /httpd/httpd/trunk/modules/http2/h2_c2.c

Author: icing
Date: Thu Nov 11 11:16:23 2021
New Revision: 1894949

URL: http://svn.apache.org/viewvc?rev=1894949&view=rev
Log:
  *) mod_http2: always return an EOS bucket for requests
     that have no body on c2 connection input filter.


Modified:
    httpd/httpd/trunk/modules/http2/h2_c2.c

Modified: httpd/httpd/trunk/modules/http2/h2_c2.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_c2.c?rev=1894949&r1=1894948&r2=1894949&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_c2.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_c2.c Thu Nov 11 11:16:23 2021
@@ -269,14 +269,14 @@ static apr_status_t h2_c2_filter_in(ap_f
         return APR_ECONNABORTED;
     }
     
-    if (!conn_ctx->beam_in) {
-        return APR_EOF;
-    }
-
     if (!fctx) {
         fctx = apr_pcalloc(f->c->pool, sizeof(*fctx));
         f->ctx = fctx;
         fctx->bb = apr_brigade_create(f->c->pool, f->c->bucket_alloc);
+        if (!conn_ctx->beam_in) {
+            b = apr_bucket_eos_create(f->c->bucket_alloc);
+            APR_BRIGADE_INSERT_TAIL(fctx->bb, b);
+        }
     }
     
     /* Cleanup brigades from those nasty 0 length non-meta buckets