On Mon, Apr 20, 2009 at 10:35:25AM -0700, HockeyDave wrote:
> 
> if (!connStrategy.keepAlive(response, context)) { 
>                 conn.close(); 
> } 
> 
> This throws and exception if response is null.  I'm new to HttpCore
> (experience is all in HttpClient), but I assume that you'd want this, but
> please correct me if I'm wrong.

Why would one want to pass a null response to the connection keep-alive 
strategy?

Oleg

  My hope would be to keep a connection alive
> whenever possible.
> 
> if (response != null && !connStrategy.keepAlive(response, context)) { 
>                 conn.close(); 
> } 
> -- 
> View this message in context: 
> http://www.nabble.com/HttpClient-performance-tp22838346p23141362.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to