hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCORE-227) Connection metrics record responses as requests.
Date Wed, 09 Jun 2010 20:52:13 GMT

     [ 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


Mime
View raw message