]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
core, h2: send EOR for early HTTP request failure.
authorYann Ylavic <ylavic@apache.org>
Fri, 17 Apr 2020 13:07:46 +0000 (13:07 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 17 Apr 2020 13:07:46 +0000 (13:07 +0000)
commitb157ae396cd69db81fe47d25ae173e4b9e60bf8d
tree8b1fdbab0ff7cfe184c4e573afdea3aa036f5245
parent504c211981c4a2aab0b9f00c9b86dc3a2a67a08e
core, h2: send EOR for early HTTP request failure.

The core output filters depend on EOR being sent at some point for correct
accounting of setaside limits and lifetime.

Rework ap_read_request() early failure (including in post_read_request() hooks)
so that it always sends the EOR after ap_die().

Apply the same scheme in h2_request_create_rec() which is the HTTP/2 to HTTP/1
counterpart.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876664 13f79535-47bb-0310-9956-ffa450edef68
modules/http2/h2_request.c
server/protocol.c