You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Abele Zhang <ab...@calix.com> on 2006/05/17 06:42:44 UTC

https persistent connection not happening.

Hi, 

I'm having an issue of https request handshaking on every request.
Functionally, it works ok. But it caused my tiny embedded web server
overloaded after couple requests. 
I turned on the JSSE debug and saw handshaking on every request. And I
tried add "Connection: keep-alive" and "Keep-Alive:300" in http header,
didn't see any difference.
Any suggestions are welcome. 
 
I'm using EasySSLProtocolSocketFactory added a bit tweaks with
httpclient 3.0.1 and sun jdk 1.5.0_05-b05 on redhat ES4. 

Thanks. 

Abele


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


Re: https persistent connection not happening.

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2006-05-16 at 21:42 -0700, Abele Zhang wrote:
> Hi, 
> 
> I'm having an issue of https request handshaking on every request.
> Functionally, it works ok. But it caused my tiny embedded web server
> overloaded after couple requests. 
> I turned on the JSSE debug and saw handshaking on every request. And I
> tried add "Connection: keep-alive" and "Keep-Alive:300" in http header,
> didn't see any difference.
> Any suggestions are welcome. 
>  
> I'm using EasySSLProtocolSocketFactory added a bit tweaks with
> httpclient 3.0.1 and sun jdk 1.5.0_05-b05 on redhat ES4. 
> 
> Thanks. 
> 
> Abele
> 

Abele,

I think I know the cause of the problem. I believe the stale connection
check is likely to have failed and caused HttpClient to have dropped
those connections. Please disable the stale connection checking and see
if that makes any difference.

Cheers,

Oleg

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


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


Re: https persistent connection not happening.

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2006-05-17 at 16:44 +0200, Roland Weber wrote:
> Hello Abele,
> 
> > I'm having an issue of https request handshaking on every request.
> > Functionally, it works ok. But it caused my tiny embedded web server
> > overloaded after couple requests. 
> > I turned on the JSSE debug and saw handshaking on every request.
> 
> Please enable the wire log (not the context log) and post the
> output for two or three requests to this mailing list.
> http://jakarta.apache.org/commons/httpclient/logging.html
> 

Actually in this particular case the context log might be quite useful

Oleg


> > And I
> > tried add "Connection: keep-alive" and "Keep-Alive:300" in http header,
> > didn't see any difference.
> 
> You do not mention whether you did that on the client for the request,
> or in your tiny embedded web server for the response. Neither do you
> mention the HTTP version or, if the version is 1.1, the transport
> encoding. Never mind, the wire log will give us such information.
> 
> cheers,
>   Roland
> 
> >  
> > I'm using EasySSLProtocolSocketFactory added a bit tweaks with
> > httpclient 3.0.1 and sun jdk 1.5.0_05-b05 on redhat ES4. 
> > 
> > Thanks. 
> > 
> > Abele
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


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


Re: https persistent connection not happening.

Posted by Roland Weber <ht...@dubioso.net>.
Hello Abele,

> I'm having an issue of https request handshaking on every request.
> Functionally, it works ok. But it caused my tiny embedded web server
> overloaded after couple requests. 
> I turned on the JSSE debug and saw handshaking on every request.

Please enable the wire log (not the context log) and post the
output for two or three requests to this mailing list.
http://jakarta.apache.org/commons/httpclient/logging.html

> And I
> tried add "Connection: keep-alive" and "Keep-Alive:300" in http header,
> didn't see any difference.

You do not mention whether you did that on the client for the request,
or in your tiny embedded web server for the response. Neither do you
mention the HTTP version or, if the version is 1.1, the transport
encoding. Never mind, the wire log will give us such information.

cheers,
  Roland

>  
> I'm using EasySSLProtocolSocketFactory added a bit tweaks with
> httpclient 3.0.1 and sun jdk 1.5.0_05-b05 on redhat ES4. 
> 
> Thanks. 
> 
> Abele

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