-
Bug
-
Resolution: Done
-
Major
-
httpd 2.4.37 GA
-
None
-
8
-
-
-
-
-
-
ER1
-
+
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?
ASF BZ: https://bz.apache.org/bugzilla/show_bug.cgi?id=64295