[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-users
Subject:    Re: configuration suggestions  for doing 100's of connections per
From:       Roland Weber <ossfwot () dubioso ! net>
Date:       2008-02-23 8:03:36
Message-ID: 47BFD358.4080402 () dubioso ! net
[Download RAW message or body]

Hi Ryan,

> Basically I am setting up a HttpClient using a
> MultiThreadedHttpConnectionManager. Next I create PostMethod objects,
> call execute in a try/finally. In the finally I call
> post.releaseConnection().
> 
> One area that I am unsure of is if this implementation allows for
> connection reuse. I've read other posts that talk about needing to
> "consume the entire response" to enable connection reuse. 

Yes it does allow for reuse. The entire response is consumed
automatically when you call post.releaseConnection(), if the
headers sent and returned allow for connection reuse.

cheers,
   Roland


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic