Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-21

have connections count requests

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-alpha3
    • Fix Version/s: 4.0-alpha6
    • Component/s: HttpCore
    • Labels:
      None

      Description

      It would be nice if connections would count the requests sent since they were opened. This would greatly simplify the implementation of reuse strategies like "reuse for at most 5 requests". While it is possible to count requests elsewhere, that is clumsy and error prone. For example the HttpContext is not a good place to keep the request count, since the connection may be released to and re-acquired from a connection manager, so the previously used context is lost.

      patch follows

      cheers,
      Roland

        Attachments

        1. 2k6-12-28-reqcnt-1.txt
          5 kB
          Roland Weber
        2. metrics_v2.patch
          16 kB
          Andrea Selva
        3. metrics.patch
          12 kB
          Andrea Selva
        4. metricstests.patch
          12 kB
          Andrea Selva

          Activity

            People

            • Assignee:
              olegk Oleg Kalnichevski
              Reporter:
              rolandw Roland Weber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: