Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-183

Use of ProxyErrorOverride causes slow response time for error status code (4xx)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • JWS 3.0.3 DR2
    • JWS 3.0.1 DR2, JWS 3.0.3 DR1
    • httpd
    • None

    Description

      By rhn-support-rbost 2015-07-06 15:43:04 EDT
      Description of problem:
      It takes X seconds to respond to a request (where X = ProxyTimeout) when the response code is a 404 (or maybe any 4xx).

      Version-Release number of selected component (if applicable): 3.0
      How reproducible: Always.
      Steps to Reproduce:

      1. Add the following configuration to your Apache:
        ProxyPass /sample/ http://localhost:8080/sample/
        ProxyPassReverse /sample/ http://localhost:8080/sample/
        ProxyErrorOverride On
        ProxyTimeout 10
      2. Deploy the sample application in EAP. (I used EAP 6.4 and deployed https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war)
      3. Try to load a URL that will cause 404 from backend. I used http://jws3/sample/hellonothing.jsp to reproduce.

      Actual results:
      When you navigate to URL that triggers 404, you must wait for 10 seconds to go by before seeing 404 page. (10 seconds because that is what ProxyTimeout is set to)

      Expected results:
      I would expect an immediate return of 404 page because the proxy is responding very quickly with a 404.

      Additional info:
      I used the same setup as described in Reproduction section but used JBoss EWS 2.1. I did not see the issue in 2.1.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jclere Jean-Frederic Clere
              rhn-support-rbost Robert Bost
              Bogdan Sikora Bogdan Sikora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: