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

Using multiple response time attributes shows that their response times may differ

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.2.Final, 1.4.24.Final
    • 1.4.22.Final
    • Core
    • None

      When you use in access log handler multiple patterns for response time, mainly visible when using one for microseconds and second for nanoseconds, the times differ as the time is not counted based on when the response really ended but based on when the io.undertow.attribute.ResponseTimeAttribute#readAttribute is called, which for each of the ResponseTimeAttributes slightly differs.

      This leads to slight differences in the reported times.

      I belive the reported time should be the same (with exception of converting to particular unit and related loss of precision) as the response took the same time.

      The solution might be to storing also response end time in the exchange and counting the response time based on it.

            sdouglas1@redhat.com Stuart Douglas
            rhatlapa@redhat.com Radim Hatlapatka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: