Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0-alpha3
-
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