You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2021/12/08 17:38:46 UTC
[Bug 65731] New: Empty response body after MaxRequestsPerChild reached for HTTP/2.0
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
Bug ID: 65731
Summary: Empty response body after MaxRequestsPerChild reached
for HTTP/2.0
Product: Apache httpd-2
Version: 2.4.41
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_http2
Assignee: bugs@httpd.apache.org
Reporter: antonios@nine.ch
Target Milestone: ---
When requesting a simple image file with HTTP2 every time MaxRequestsPerChild
is reached, an empty response is sent to the client. This is even reproducible.
Server Version: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f
Server MPM: event
OS: Ubuntu 20.04
Server Version: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1
Server MPM: worker
OS: Ubuntu 18.04
Same issue exists with mpm_event and mpm_worker.
My configuration:
<IfModule mpm_event_module>
StartServers 8
MinSpareThreads 4
MaxSpareThreads 12
ThreadLimit 64
ThreadsPerChild 16
MaxRequestsPerChild 100
ServerLimit 64
MaxClients 64
</IfModule>
mod_http2 no custom configuration in use.
Test command:
for i in {1..2000}; do if [[ $(curl -o /dev/null -s -k --http2
https://example.net/2101583.jpg?test=$i -w '%{size_download}') == 0 ]]; then
break; fi; done
Access log output:
8.8.8.8 - - [08/Dec/2021:18:20:32 +0100] "GET /2101583.jpg?fakeVar=33 HTTP/2.0"
200 17115 "-" "curl/7.68.0"
8.8.8.8 - - [08/Dec/2021:18:20:33 +0100] "GET /2101583.jpg?fakeVar=34 HTTP/2.0"
200 17115 "-" "curl/7.68.0"
8.8.8.8 - - [08/Dec/2021:18:20:33 +0100] "GET /2101583.jpg?fakeVar=35 HTTP/2.0"
200 0 "-" "curl/7.68.0"
8.8.8.8 - - [08/Dec/2021:18:20:33 +0100] "GET /2101583.jpg?fakeVar=36 HTTP/2.0"
200 17115 "-" "curl/7.68.0"
8.8.8.8 - - [08/Dec/2021:18:20:33 +0100] "GET /2101583.jpg?fakeVar=37 HTTP/2.0"
200 17115 "-" "curl/7.68.0"
8.8.8.8 - - [08/Dec/2021:18:20:33 +0100] "GET /2101583.jpg?fakeVar=38 HTTP/2.0"
200 17115 "-" "curl/7.68.0"
8.8.8.8 - - [08/Dec/2021:18:20:33 +0100] "GET /2101583.jpg?fakeVar=39 HTTP/2.0"
200 17115 "-" "curl/7.68.0"
...
8.8.8.8 - - [08/Dec/2021:18:20:37 +0100] "GET /2101583.jpg?fakeVar=135
HTTP/2.0" 200 0 "-" "curl/7.68.0"
...
8.8.8.8 - - [08/Dec/2021:18:20:42 +0100] "GET /2101583.jpg?fakeVar=235
HTTP/2.0" 200 0 "-" "curl/7.68.0"
...
8.8.8.8 - - [08/Dec/2021:18:20:47 +0100] "GET /2101583.jpg?fakeVar=335
HTTP/2.0" 200 0 "-" "curl/7.68.0"
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
--- Comment #3 from Antonios Tsianakas <an...@nine.ch> ---
Yes, and with 2.4.51 the responses with an empty body wasn't logged in the
access log.
When this happens curl reports "curl: (16) Error in the HTTP2 framing layer".
Attached is the trace8 output of such a request.
Server version: Apache/2.4.51 (Unix)
Server built: Dec 9 2021 12:24:50
Server's Module Magic Number: 20120211:118
Server loaded: APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
herr.ernst@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |herr.ernst@gmail.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
--- Comment #1 from Ruediger Pluem <rp...@apache.org> ---
Does this happen as well with 2.4.51 compiled from source?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
--- Comment #6 from Stefan Eissing <ic...@apache.org> ---
I was able to reproduce this in a test case and made a fix to be backported to
2.4.x in the next release.
I attached the patch for the 2.4.x codebase, if you can build from source. If
you want to build from the github module version, there is
<https://github.com/icing/mod_h2/releases/tag/v1.15.27>.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
shieldwed <sh...@outlook.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shieldwed@outlook.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
--- Comment #2 from Antonios Tsianakas <an...@nine.ch> ---
Created attachment 38125
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38125&action=edit
Apache Trace8 Log
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
Graham Leggett <mi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Graham Leggett <mi...@apache.org> ---
Backported to v2.4.52:
*) mod_http2: fixes PR65731 and https://github.com/icing/mod_h2/issues/212
trunk patch: na, fixed on 2.4.x source base
backport PR: https://github.com/apache/httpd/pull/281
+1: icing, minfrin, ylavic
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
Ruediger Pluem <rp...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
--- Comment #4 from Stefan Eissing <ic...@apache.org> ---
Thanks for the log. I can see that mod_http2 sees the MPM stopping and sends a
GOAWAY frame *before* the HTTP/2 session has been fully started. That is indeed
a violation of the H2 protocol.
Working on a test and patch.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65731] Empty response body after MaxRequestsPerChild reached for HTTP/2.0
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65731
--- Comment #5 from Stefan Eissing <ic...@apache.org> ---
Created attachment 38127
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38127&action=edit
patch on 2.4.x code base
Proposed fix for 2.4.x code base.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org