You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "praveen neppalli naga (JIRA)" <ji...@apache.org> on 2009/05/16 00:19:46 UTC

[jira] Updated: (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:all-tabpanel ]

praveen neppalli naga updated HTTPCLIENT-848:
---------------------------------------------

    Attachment: context.log
                HttpClientTest.java

Attached the logs and the test case.
This is the scenario.

Make https get  call using httpclient 3.1 to say "https://www.verisin.com/"
Have a squid proxy and dont authorize "https://www.verisin.com/" in the acl list, so squid will block this call.
As expected httpClient makes a CONNECT with squid proxy to tunnel with the host.
Squid responds back with 403.
httpClient does not release connection to the pool so any subsequent calls for the same host will not get connection.
MaxTotalConnections = 4
DefaultMaxConnectionsPerHost = 1

The expected behavior is that, httpClient releases the connection to the pool for this specific host when CONNECT call fails.

Also Pplease let me know if I doing something wrong.

Thanks
Praveen

> 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
>         Attachments: context.log, HttpClientTest.java
>
>
> 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