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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to