hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject RE: Keep alive questions
Date Fri, 18 Jun 2010 11:43:57 GMT
On Fri, 2010-06-18 at 12:51 +0200, Joan Balaguero wrote:
> Hello Oleg,
> 
> Thanks for your response.
> 
> What I mean by removing keep alive strategy is the following. I have an administration
application with the following option:
> 
> [x] Keep alive http connection for [ xxxx ] seconds.
> 
> If the user checks this option, he must enter a number greather than 0 as keep alive
duration. Then I set my own KeepAliveStrategy with:
> 
> this.objHttp.setKeepAliveStrategy(new VPFWConnectionKeepAliveStrategy(keepAliveDuration));
> 
> But now imagine that the same user unchecks this option. Then, I should apply the default
keep alive strategy. And what is this? Keep alive indefinitely?
> Pass to 'VPFWConnectionKeepAliveStrategy' an Integer.MAX_VALUE value? 
> 

Check Keep-Alive header, if not found, keep alive indefinitely.

Oleg


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