Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1358

ResponseTimeAttribute returns time from before the response ends when used in expression filter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.4.26.Final, 2.0.10.Final
    • None
    • None
    • None

      When response time attribute is used in expression filter e.g. like this:

      header(header='resp-time', value='%{RESPONSE_TIME}');
      

      It seems to work correctly when we request for welcome-content which is maintained by the file-handler. But in case we perform request against servlet (attached) then the time returned in the header resp-time does not match expectations as it is very close to 0. Is it by design due to some restrictions for servlets or is it a bug? There is no documentation to refer to or I did not find any.

        1. heavy-processing.war
          3 kB
          Adam Krajcik
        2. HeavyProcessingServlet.java
          2 kB
          Adam Krajcik

            sdouglas1@redhat.com Stuart Douglas
            akrajcik@redhat.com Adam Krajcik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: