https://bz.apache.org/bugzilla/show_bug.cgi?id=64295
Bug ID: 64295
Summary: cannot override default Virtualhost's mod_reqtimeout
Product: Apache httpd-2
Version: 2.4.43
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_reqtimeout
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
RequestReadTimeout is only applying from the default virtual host, for example:
<VirtualHost *:80>
ServerName host1.com
RequestReadTimeout header=5 body=5
</VirtualHost>
<VirtualHost *:80>
ServerName host2.com
RequestReadTimeout header=5 body=10
</VirtualHost>
A request to host2.com still times out at 5 seconds for the post body instead
of 10. Perhaps it makes sense that the default host timeout has to apply since
it starts applying during header read before a host is determined, but I
haven't seen a reference that sets a clear expectation.
>From eyeballing the code it looks like mod_reqtimeout is explicitly using the
timeout from the "base server" (global/default) vhost. The request vhost
should be available in that hook and the vhost selection has taken place at
that point. So I'm not sure why it behaves like that.
Is it by design for only the default host RequestReadTimeout apply? If so, can
its doc be improved to clarify this? Or is there a possible enhancement for at
least the body timeout to apply from non-default hosts?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]