hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takashi Narita (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1525) The TimeUnit of Keepalive only support ”TimeUnit.MILLISECONDS"
Date Wed, 02 Jul 2014 04:53:26 GMT
Takashi Narita created HTTPCLIENT-1525:
------------------------------------------

             Summary: The TimeUnit of Keepalive only support ”TimeUnit.MILLISECONDS"
                 Key: HTTPCLIENT-1525
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1525
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.4 Alpha1, 4.3.4
            Reporter: Takashi Narita
            Priority: Minor


Hi.
The case when tunit non-TimeUnit.MILLISECONDS, the following is bug.

[https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.4-alpha1/httpclient/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java]

{code:title=org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java|borderStyle=solid}
    public void releaseConnection(
            final HttpClientConnection managedConn,
            final Object state,
            final long keepalive, final TimeUnit tunit) {
...
                        if (keepalive > 0) {
                            s = "for " + (double) keepalive / 1000 + " seconds";
                        } else {
...
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message