jira-importer opened a new issue, #1268: URL: https://github.com/apache/httpcomponents-core/issues/1268
**[Roland Weber](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rolandw)** opened **[HTTPCORE-21](https://issues.apache.org/jira/browse/HTTPCORE-21?redirect=false)** and commented 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 --- **Affects:** 4.0-alpha3 **Attachments:** - [2k6-12-28-reqcnt-1.txt](https://issues.apache.org/jira/secure/attachment/12347971/2k6-12-28-reqcnt-1.txt) (_4.51 kB_) - [metrics_v2.patch](https://issues.apache.org/jira/secure/attachment/12356940/metrics_v2.patch) (_16.15 kB_) - [metrics.patch](https://issues.apache.org/jira/secure/attachment/12356831/metrics.patch) (_11.61 kB_) - [metricstests.patch](https://issues.apache.org/jira/secure/attachment/12360137/metricstests.patch) (_11.96 kB_) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
