Re: apache async httpclient I/O reactor status: STOPPED

2014-01-14 Thread Jaikit Savla
Hi Oleg, I got the error again. Please find the stack trace below. If I get to reproduce it consistently - I will upload a test case. This time I see there are couple of SocketTimeoutExceptions before I/O reactor termites abnormally Caused by: java.net.SocketTimeoutException         at org.apa

incredible speedup with asynch client and zero copy

2014-01-14 Thread Boxer, Aaron
I am now getting 800 MBPS uploads using asynch client and zero copy puts, compared to 30 MBPS uploads with synchronous http client puts. Hats off to the team, this is really incredible! Aaron This e-mail may contain confidential and/or privileged information for the sole use of the intended re

RE: Need help with zero copy put

2014-01-14 Thread Boxer, Aaron
I have the following code that I am using with an httpclientasync client: void put(File file, Map headers) { HttpPut put = new HttpPut(url); InputStream is = new FileInputStream(file); InputStreamEntity entity = new InputStreamEntity(d

RE: addInterceptorFirst

2014-01-14 Thread Boxer, Aaron
On Tue, 2014-01-14 at 14:27 +, Boxer, Aaron wrote: > On Mon, 2014-01-13 at 20:31 +, Boxer, Aaron wrote: > > Is there a way of removing an interceptor added with addInterceptorFirst ? > > > > Remove from where? > > From the client after it is built by the builder ? I am porting old > co

Need help with zero copy put

2014-01-14 Thread Boxer, Aaron
Hello, I have the following code that I am using with an httpclientasync client: void put(File file, Map headers) { HttpPut put = new HttpPut(url); InputStream is = new FileInputStream(file); InputStreamEntity entity = new InputStream

Re: addInterceptorFirst

2014-01-14 Thread Oleg Kalnichevski
On Tue, 2014-01-14 at 14:27 +, Boxer, Aaron wrote: > On Mon, 2014-01-13 at 20:31 +, Boxer, Aaron wrote: > > Is there a way of removing an interceptor added with addInterceptorFirst ? > > > > Remove from where? > > From the client after it is built by the builder ? I am porting old code

RE: porting to 4.3

2014-01-14 Thread Boxer, Aaron
-Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Tuesday, January 14, 2014 5:52 AM To: HttpClient User Discussion Subject: Re: porting to 4.3 On Mon, 2014-01-13 at 20:26 +, Boxer, Aaron wrote: > Well, I've got everything ported over, except for one line: >

RE: addInterceptorFirst

2014-01-14 Thread Boxer, Aaron
On Mon, 2014-01-13 at 20:31 +, Boxer, Aaron wrote: > Is there a way of removing an interceptor added with addInterceptorFirst ? > Remove from where? From the client after it is built by the builder ? I am porting old code where I used to Be able to do this: this.client.removeReq

Re: apache async httpclient I/O reactor status: STOPPED

2014-01-14 Thread Oleg Kalnichevski
On Mon, 2014-01-13 at 18:55 -0800, Jaikit Savla wrote: > Hello Folks, > > I have a service running which depends on apache async httpclient. Versions > are as mentioned below > commons-httpclient-3.1.jar > httpasyncclient-4.0.jar > httpcore-4.3.jar > httpcore-nio-4.3.jar > > Intermittently (afte

Re: addInterceptorFirst

2014-01-14 Thread Oleg Kalnichevski
On Mon, 2014-01-13 at 20:31 +, Boxer, Aaron wrote: > Is there a way of removing an interceptor added with addInterceptorFirst ? > Remove from where? Oleg - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.or

Re: porting to 4.3

2014-01-14 Thread Oleg Kalnichevski
On Mon, 2014-01-13 at 20:26 +, Boxer, Aaron wrote: > Well, I've got everything ported over, except for one line: > > > HttpProtocolParams.setExpectContinue(false); > > How do I set this parameter in the new architecture? > RequestConfig config = RequestConfig.custom() .setExpectCon

Re: PoolingHttpClientConnectionManager is not reusing connection

2014-01-14 Thread Oleg Kalnichevski
On Mon, 2014-01-13 at 10:17 -0800, Vikram wrote: > I am using HttpClient 4.3.1. > > Using HttpClient with PoolingHttpClientConnectionManager as the > connection manager. I have also set MaxTotal as 5000 and MaxPerRoute as > 4000. When I am load testing it, I notice that when a connection is creat

how to get proxy chain work?

2014-01-14 Thread Li Li
from https://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html Even though HttpClient is aware of complex routing scemes and proxy chaining, it supports only simple direct or one hop proxy connections out of the box. is there any working example of a two hog proxy chains? ---