Re: Is HttpClient thread safe?

2016-12-31 Thread Bernd Eckenfels
Hello, You can and should share the ahttpClient among multiple request threads. This way it can do pooling, keep alive and resource management. However do not concurrently use connections and basically stick to one thread for a complete execution. HttpResponse and Entity should be processed

Is HttpClient thread safe?

2016-12-31 Thread David Thielen
I am using the Apache HttpClient to read files from a website. When we do multiple requests at once, it appears that it will not read any more from the earlier CloseableHttpResponse.getEntity() streams. No error or anything, but it truncates the file. Is this expected? And if so, is there a

Re: HttpClient BUFFER_WARN_TRIGGER_LIMIT replacement in 4.x

2016-12-31 Thread Oleg Kalnichevski
On Thu, 2016-12-29 at 10:59 +, Müller, Stephan wrote: > Ahoi! > > I started migrating a legacy codebase using httpclient 3.x to use > httclient 4.5.2. > > Our code used to set  > params.setParameter("http.method.response.buffer.warnlimit",responseB > ufferWarnLimit); > on