You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2010/06/09 22:52:13 UTC
[jira] Resolved: (HTTPCORE-227) Connection metrics record responses
as requests.
[ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org