Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-935

cannot override default Virtualhost's mod_reqtimeout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • httpd 2.4.37 SP3 ER1
    • httpd 2.4.37 GA
    • httpd
    • None

    Description

      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

      Attachments

        Activity

          People

            pprokopi@redhat.com Petros Marios Prokopiou (Inactive)
            rhn-support-aogburn Aaron Ogburn
            Paul Lodge Paul Lodge
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: