hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry C <lc57...@gmail.com>
Subject Re: SecureProtocolSocketFactory hang in Java 6
Date Fri, 04 Mar 2011 23:33:07 GMT
Thanks for the help, it turns out that the issue was related to TLS
Renegotiation and the differences in Java 5 and 6.
Toggling the sun.security.ssl.allowUnsafeRenegotiation property is a
short term fix for now.

On Mon, Feb 28, 2011 at 10:53 PM, sebb <sebbaz@gmail.com> wrote:
> On 1 March 2011 03:41, Larry C <lc57688@gmail.com> wrote:
>> Hi,
>>
>> I’m having some trouble when creating a https connection with client
>> certificate authentication using HttpClient 3.1 and Java 6.  I created
>> a class KeyStoreSocketFactory that implements
>> SecureProtocolSocketFactory that adds the certificate to the keystore.
>>
>> The code works perfectly in Java 5, and has no trouble getting a
>> response.  However, when I updated our JRE to Java 1.6.0_23 we started
>> getting a hang on the handshake.  Does a setting need to be changed to
>> make this work in Java 6?  I end up with the following error:
>> HttpMethodDirector:439 - I/O exception
>> (org.apache.commons.httpclient.NoHttpResponseException) caught when
>> processing request: The server ___ failed to respond
>>
>> In Java 5 the response is pretty must instant.  Does anyone know why
>> Java 6 would cause this hang?
>
> Not sure it applies here, but I've seen reports of issues with IPv6
> causing long delays - try disabling it entirely.
>
>> Thanks,
>> Larry
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

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


Mime
View raw message