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] (HTTPCLIENT-1801) HttpRequestBase.releaseConnection() method aborts connection rather than release it
Date Mon, 09 Jan 2017 16:46:58 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1801.
-------------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 5.0)
                   5.0 Alpha2

The #releaseConnection method has been removed in SVN trunk.

Oleg

> HttpRequestBase.releaseConnection() method aborts connection rather than release it
> -----------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1801
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1801
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.2
>            Reporter: Daniel Isaac Khan Ramiro
>            Priority: Minor
>              Labels: method, releaseConnection, rename
>             Fix For: 5.0 Alpha2
>
>
> Trying to release any HTTP method that extends org.apache.hc.client5.http.methods.HttpRequestBase,
for example: 
> Package: org.apache.hc.client5.http.methods
> HttpGet get = new HttpGet();
> get.releaseConnection();
> will result into the connection being aborted and therefore instead of being released
it will be removed completely from the pool of connections since the method called eventually
within the org.apache.hc.client5.http.impl.sync.ConnectionHolder object (Cancellable) would
be cancel() which would in turn abortConnection()
> The name of the method is misleading as the implementation of releaseConnection does
not do what it claims, but rather it resets the connection.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message