[
https://issues.apache.org/jira/browse/HTTPCORE-227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCORE-227.
----------------------------------------
Resolution: Fixed
Fix committed to SVN trunk. Many thanks for reporting the bug.
Oleg
> Connection metrics record responses as requests.
> ------------------------------------------------
>
> Key: HTTPCORE-227
> URL: https://issues.apache.org/jira/browse/HTTPCORE-227
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore NIO
> Affects Versions: 4.1-beta1
> Reporter: Harold Lee
> Priority: Minor
> Fix For: 4.1
>
>
> DefaultNHttpClientConnection.consumeInput(NHttpClientHandler) should call
> this.connMetrics.incrementResponseCount() instead of
> this.connMetrics.incrementRequestCount(). DefaultNHttpClientConnection.java,
> line 160.
> With the current code, after 3 requests on a connection I see:
> NHttpConnection conn;
> // Get connection object...
> HttpConnectionMetrics metrics = conn.getMetrics();
> long reqs = metrics.getRequestCount(); // returns 6
> long rsps = metrics.getResponseCount(); // returns 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]