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 2009/05/11 22:20:46 UTC

[jira] Commented: (HTTPCLIENT-848) HttpClient:- Connections not released when SSL Tunneling fails.

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708192#action_12708192 ] 

Oleg Kalnichevski commented on HTTPCLIENT-848:
----------------------------------------------

Are you sure your application _always_ invokes HttpMethod#releaseConnection() when done with the request? The best way to ensure the underlying connection gets released back to the pool is by calling this method from a finally block.

Oleg

> HttpClient:- Connections not released when SSL Tunneling fails.
> ---------------------------------------------------------------
>
>                 Key: HTTPCLIENT-848
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-848
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpConn
>    Affects Versions: 3.1 Final
>            Reporter: praveen neppalli naga
>
> Trying to use HTTPS, and SSL tunneling fails as expected because the host is not accepted by the squid proxy, so squid proxy return 403. 
> The problem I am seeing is that, when ever this happens the connections are not released to the pool. I traced the code and it appears that in 
> HttpMethidDirector.java:  executeWithRetry()
> when executeConnect() return false and there is no retry, the connections are not released.
> Is this expected? Or am I doing something wrong.

-- 
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