Re: Getting the response time for multithreaded client

2008-03-25 Thread Oleg Kalnichevski
On Mon, 2008-03-24 at 22:19 +0100, Uwe Kubosch wrote: Hi Oleg! Thank you for your answer. How would I do it in HttpClient 4.0? The simplest way would be to register a request interceptor to log the start time of the request execution and a response interceptor to log the time a response

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Oleg Kalnichevski
On Mon, 2008-03-24 at 15:46 -0700, Ankur Shah wrote: Hi Oleg, Thanks for the response. The server that i am running (acting as a client in this particular case) is working with multiple servers (hosting different webservices) with each having a primary and a failover pair. From this

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Ankur Shah
Thanks oleg, Do you see any issues in the approach that i was thinking about (and have implemented already) other than the fact that its not very clean? Could you elaborate a bit more on what you mean by creating service on top of httpclient, (i understand what it'll do but just didn't know

Re: A proble with the buffer

2008-03-25 Thread hjw
Hi, Oleg Use #getResponseAsStream() is not ok,because once #executeMethod(),the response will receive automaticly 2K data,what I want likes HeadMethod which only receives the header ,but HeadMethod could not get the response. 2008/3/26, Oleg Kalnichevski [EMAIL PROTECTED]: On Tue, 2008-03-25