Re: How to implement httpPatch in httpCLient 4.1.3

2017-02-21 Thread Oleg Kalnichevski
On Mon, 2017-02-20 at 13:14 +, Khare, Aparna wrote: > Dear Users, > >   I have a requirement where I want to implement HTTPPatch method. > The problem is we are still on httpClient 4.1.3 which does not have a > default method for PATCH. > > I need help if there are ways I can do the same. >

[ANNOUNCEMENT] HttpComponents HttpAsyncClient 4.1.3 GA Released

2017-02-10 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.1.3 GA release of HttpComponents HttpAsyncClient. This is a maintenance release that fixes a number of minor issues discovered since 4.1.2 and upgrades HttpCore and HttpClient dependencies. --- Download - 

Re: Unknown/invalid Content-Encoding response header

2017-02-06 Thread Oleg Kalnichevski
ontentEncoding.java change quite a bit and now has an  > "ignoreUnknown" flag for these cases - unfortunately that appears to  > be hard-coded to "true" now and cannot be configured. > > I browsed the release notes for some insight on this and it appears  > to be that th

Re: I/O thread blocking under high concurrent load

2017-02-02 Thread Oleg Kalnichevski
On February 2, 2017 7:05:07 AM GMT+01:00, Sudheera Palihakkara wrote: >Hi all, > >I'm currently using httpcore-nio 4.4 for a proxy-like application and >make >use of the file channels when content transferring. Recently I have >profiled my code under a high concurrent

Re: Support HTTP/2 protocol

2017-01-31 Thread Oleg Kalnichevski
On Mon, 2017-01-30 at 08:43 -0700, Shawn Heisey wrote: > On 1/26/2017 8:15 AM, Oleg Kalnichevski wrote: > > ALPN will be supported as soon as it is supported by the Java > > platform > > (which is not going to happen until Java 9).  > > I see evidence that the other Jav

[ANNOUNCEMENT] HttpComponents Client 4.5.3 GA Released

2017-01-26 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.5.2 GA release of HttpComponents HttpClient. HttpClient 4.5.3 is a maintenance release that fixes a number of minor bugs reported since 4.5.2. Download - Release notes -

Re: Support HTTP/2 protocol

2017-01-26 Thread Oleg Kalnichevski
On Thu, 2017-01-26 at 14:32 +0100, Philippe Mouawad wrote: > Hello , > Oleg kindly proposed to help JMeter project in adding HTTP/2 support. > > We have started this thread to work on design. > > As per Andrei remark, it seems ALPN is not yet supported by current > HTTPClient 5.x version. > Is

Re: PoolingClientConnectionManager lease/release connection problem with SSLConnectionFactory

2017-01-20 Thread Oleg Kalnichevski
On Fri, 2017-01-20 at 15:17 +0800, sdy wrote: > hi, folks, >   I'm working with httpclient (4.2.1) on suse linux > enterprise server 11(x86_64),  and construct the connectionpool > manager code as follow: > > >  KeyStore keyStore = getKeyStore(KEY_STORE_CLIENT_PATH, >

Re: Location based RedirectStrategy

2017-01-16 Thread Oleg Kalnichevski
On Mon, 2017-01-16 at 13:22 +0100, Lucas Ventura Carro wrote: > I wanted to develop an specific RedirectStrategy, which will accept > the > redirect based on the location URI returned in response. > > So my idea was to override the 'isRedirected' method and, retrieve > the URI > with

[ANNOUNCEMENT] HttpComponents Core 4.4.6 GA released

2017-01-12 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.4.6 GA release of HttpComponents Core.  This is a maintenance release that fixes a number of issues discovered since 4.4.5. Please note that as of 4.4 HttpCore requires Java 1.6 or newer. Download -

Re: Parse cookie with HttpClient?

2017-01-04 Thread Oleg Kalnichevski
On Sun, 2017-01-01 at 23:57 -0500, davidjesse...@aol.com wrote: > I am working with a web service that returns cookies in the response > http body instead of the response headers. > I need to add these cookies to the HtmlUnit WebClient instance. > I have extracted the cookie string. Are there any

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

Re: http client sample failing for Digest authentication

2016-12-28 Thread Oleg Kalnichevski
On Wed, 2016-12-28 at 00:13 +, David Thielen wrote: > I am running the sample for digest authentication. I didn't change anything, > just using the provided sample and I am getting the error "HTTP/1.1 401 > UNAUTHORIZED" > > If I go direct to http://httpbin.org/digest-auth/auth/user/passwd

[ANNOUNCEMENT] HttpComponents Core 5.0 alpha2 released

2016-12-27 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-alpha2 release of HttpComponents Core. This is a major release that renders HttpCore API incompatible with the stable 4.x branch and upgrades HTTP/1.1 and HTTP/2 protocol conformance to the requirements and recommendations of the

Re: Using HttpClientContext to get a server proxy's certificates

2016-12-18 Thread Oleg Kalnichevski
On Sat, 2016-12-17 at 18:05 -0500, Qiang Cao wrote: > Hi Everyone, > > I'm running my client to talk to a service that is behind a proxy. The > channel between the client and the server proxy is established through SSL. > I wish to retain the certificates of the proxy. > > Client --- SSL socket

Re: HttpClient bounded download size

2016-12-13 Thread Oleg Kalnichevski
On Mon, 2016-12-12 at 17:47 -0500, Joseph Naegele wrote: > Hi all, back again. > > Now I'm wondering how to properly limit the number of bytes downloaded by the > synchronous HttpClient (v4.5, i.e. most recent versions). > > Like the HttpAsyncClient, even if I only read the desired number of

Re: HttpAsyncClient bounded download size

2016-12-07 Thread Oleg Kalnichevski
On Tue, 2016-12-06 at 11:21 -0500, Joseph Naegele wrote: > Hi folks, > > How can I limit the amount of data downloaded for a request executed by the > HttpAsyncClient and still process the response as "completed" in the > registered FutureCallback? The use case is a large scale web crawler that

Re: DNS Round Robin

2016-12-04 Thread Oleg Kalnichevski
On Fri, 2016-12-02 at 12:55 -0500, Murat Balkan wrote: > Hi all, > > When I do httpclient.execute to the url ( > https://mc.yandex.ru/metrika/watch.js) the the execute call hangs more than > the timeout parameters. I have socket timeout set to 15 seconds and > connect timeout set to 15 seconds.

Re: HttpContext To Url

2016-12-01 Thread Oleg Kalnichevski
On Tue, 2016-11-29 at 16:19 -0500, Murat Balkan wrote: > Hi, > Whats the best way to reach the request target Url from the HttpContext > object? > Thank you, > Murat http://hc.apache.org/httpcomponents-core-4.4.x/httpcore/apidocs/org/apache/http/protocol/HttpCoreContext.html#getTargetHost() Oleg

Re: RFC 6265 and non-prefix cookie path

2016-11-26 Thread Oleg Kalnichevski
On Fri, 2016-11-25 at 16:02 +0100, Schulz-Hildebrandt, Ole wrote: > Hi, > > I'm using httpclient 4.5.2 and the CookieSpec Standard. > > If the response to a http request to http://.../abc contains a cookie for the > path /def this cookie is rejected by httpclient. This is the correct behavior

Re: scala: apache httpclient in multi-threaded environment. confusion on correct way of use

2016-11-12 Thread Oleg Kalnichevski
On Sat, 2016-11-12 at 20:16 +0530, Nishant Kumar wrote: > Hi, > > I am writing a singleton class (Object in scala) which uses apache > httpclient(4.5.2) to send some file or some json content to a server and > return status to caller. Here is my class - > > object HttpUtils{ >

Re: SSL Handshake : timing and timeout

2016-11-12 Thread Oleg Kalnichevski
On Fri, 2016-11-11 at 11:01 +0100, Stefan Magnus Landrø wrote: > True. The way SSL sockets are created is complex stuff. They are layered > and I believe the handshake is async - maybe Oleg could clarify? > There is nothing special or unusual about SSL/TLS handshakes. They involve multiple IP

Re: RetryHandler Per GetMethod

2016-11-12 Thread Oleg Kalnichevski
In fact the retry handlers (some implementations) already look at the > > method and only retry idempotent methods > > > > Gruss > > Bernd > > -- > > http://bernd.eckenfels.net > > > > > > > >

Re: NoHttpResponseException in the async client

2016-11-12 Thread Oleg Kalnichevski
On Thu, 2016-11-10 at 11:31 +0100, Joan Balagueró - ventusproxy wrote: > Hello, > > We have replaced the httpclient by the async client in our application. > Everything works fine, but the ‘NoHttpResponseException’ has disappeared > from our error statistics reports. So, or with the new async

Re: HttpClient behavior on close with active connections

2016-11-10 Thread Oleg Kalnichevski
On Wed, 2016-11-09 at 13:43 -0700, Shawn Heisey wrote: > I'm using SolrJ 6.2.1 in the program I'm writing, which pulls in > httpclient/httpmime 4.5.2 and httpcore 4.4.5 as dependencies. > > One of the things that my SolrJ code does takes over an hour to > complete. The HTTP connection is kept

Re: RetryHandler Per GetMethod

2016-11-10 Thread Oleg Kalnichevski
On Wed, 2016-11-09 at 09:05 -0500, Murat Balkan wrote: > Hello, > > Is it possible to set a retry handler per HttpGet? The following code taken > from the documentation only applies to 3x and seems to be deprecated. > > > httpget.getParams(). > setParameter(HttpMethodParams.RETRY_HANDLER,

Re: NoHttpResponseException Timer?

2016-11-10 Thread Oleg Kalnichevski
should apply. Oleg > Thanks > > On 8 November 2016 at 07:35, Oleg Kalnichevski <ol...@apache.org> wrote: > > > On November 7, 2016 9:16:19 PM GMT+01:00, Murat Balkan <mrbal...@gmail.com> > > wrote: > > >Hi, > > > > > >Which timer does

Re: NoHttpResponseException Timer?

2016-11-08 Thread Oleg Kalnichevski
On November 7, 2016 9:16:19 PM GMT+01:00, Murat Balkan wrote: >Hi, > >Which timer does the NoHttpResponseException use? My socket timeout is >set >around 30 and connection timeout is set to 20. However, I see that in >some >cases, this exception is thrown after more than 50

Re: java.util.concurrent.TimeoutException with the async client

2016-10-30 Thread Oleg Kalnichevski
On Thu, 2016-10-27 at 15:13 +0200, Joan Balagueró wrote: > Hi Oleg, > > Sorry yes, reviewing emails I already asked about TimeoutException. I've been > reading again the httpcore tutorial because think I had a misunderstanding > about how the async client works. > > In the previous case we had

Re: java.util.concurrent.TimeoutException with the async client

2016-10-27 Thread Oleg Kalnichevski
On Thu, 2016-10-27 at 12:23 +0200, Joan Balagueró wrote: > Hello, > > After working in production with the async client (instead of the blocking > one) everything seems ok, except that now I can see this error > intermitently: > > java.util.concurrent.TimeoutException > at >

Re: next request after a 204 response fails

2016-10-27 Thread Oleg Kalnichevski
On Thu, 2016-10-27 at 11:55 +0200, Marc Sluiter wrote: > On 26 October 2016 at 22:28:28, Oleg Kalnichevski (ol...@apache.org) wrote: > On Wed, 2016-10-26 at 13:01 +0200, Marc Sluiter wrote: > > Hi all, > > > > during testing a Restlet based web app with JMeter

Re: next request after a 204 response fails

2016-10-26 Thread Oleg Kalnichevski
On Wed, 2016-10-26 at 13:01 +0200, Marc Sluiter wrote: > Hi all, > > during testing a Restlet based web app with JMeter I came across a strange > issue, which I stripped down to an issue with the Apache HttpClient: > > when a request gets a 204 (success no content) response, the NEXT request >

Re: Including Content-Length request header

2016-10-24 Thread Oleg Kalnichevski
On Sat, 2016-10-22 at 13:04 -0400, davidjesse...@aol.com wrote: > I understand that HttpClient automatically includes the Content-Length > request header when passing a StringEntity. But I would like to set the > position of the header. But when I include the request header myself I get > the

Re: Throwing socketTimeoutException within HttpAsyncResponseConsumer consumeContent method

2016-10-20 Thread Oleg Kalnichevski
On Thu, 2016-10-20 at 12:11 +0200, Joan Balagueró wrote: > Hello, > > In my async client pool, I’ve currently set up a select interval of 1000ms. > But I need to control response timeouts of 50ms, 100ms, etc. > > So I’have tried to implement something like this in the 'consumeContent' > method

Re: Controlling releaseConnection

2016-10-20 Thread Oleg Kalnichevski
On Wed, 2016-10-19 at 10:14 -0400, Pellerin, Clement wrote: > I agree with you this feature is strange and need not be added to the library. > As I said before, I need to preserve this feature for backwards compatibility. > It has something to do with delaying the emission of an MDN in an AS2

Re: Controlling releaseConnection

2016-10-18 Thread Oleg Kalnichevski
On Tue, 2016-10-18 at 10:12 -0400, Pellerin, Clement wrote: > I agree that code is correct. I never said there was a bug. > I am asking how to override the behavior. > We are porting our product from HttpClient 4.1 to 4.5.2 > and we need to preserve that feature because it is used by our

Re: Disabling pooling of PoolingConnectionManager

2016-10-18 Thread Oleg Kalnichevski
On Mon, 2016-10-17 at 22:06 -0600, Bhowmik, Bindul wrote: > Murat, > > On Mon, Oct 17, 2016 at 8:11 PM, Murat Balkan wrote: > > I see. I think that also means that I cannot share the ClosableHttpClient > > instance among multiple threads as each client can refer to one

Re: AW: Controlling releaseConnection

2016-10-18 Thread Oleg Kalnichevski
On Tue, 2016-10-18 at 01:46 +0200, e...@zusammenkunft.net wrote: > Hello, > > Can younspecify why you need to delay it? Do wou want to make some kind of > rate limit with this or optimize pipelining? > > Gruss > Bernd I am not quite sure I understand the problem. HttpClient releases connection

Re: Memory leak in CloseableHttpAsyncClient?

2016-10-17 Thread Oleg Kalnichevski
On Sun, 2016-10-16 at 21:54 +, Rob Griffin wrote: > We are using HTTPAsynchClient to send data to our web site from a Java > client. > > We call CloseableHttpAsyncClient.execute() to execute HTTP PUTs at the rate > of several hundred per minute. Sometimes our web site slows down and does

Re: Cookies in the response body

2016-10-10 Thread Oleg Kalnichevski
On Sun, 2016-10-09 at 17:19 -0400, Arya F wrote: > I am working with a rest server that the cookies are returned in the > response body and not the response headers, which makes it impossible for > HttpClient to automatically deal with the cookies. > > I have extracted the cookies into POJO

Re: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool

2016-10-10 Thread Oleg Kalnichevski
On Mon, 2016-10-10 at 19:16 +0200, Claudio Degioanni wrote: > Hi All, > > I'm using the library Axis 2 version 1.7.3 with HttpClient 4.4.1, and > after 200 request the library throw a TimeoutException from connection pool. > > From stacktrace I found the exeption is throw by the class >

Re: Get response header from 204 response code

2016-10-09 Thread Oleg Kalnichevski
On Sun, 2016-10-09 at 00:59 -0400, Arya F wrote: > I have also asked about this on Stackoverflow and have not gotten any > solutions. Here is the link to the question but I will also explain it here > > http://stackoverflow.com/questions/39939509/get-location-header-from-204- > response > > > I

Re: AW: Why are many TCP open connections created on OS (Linux)?

2016-10-05 Thread Oleg Kalnichevski
On Wed, 2016-10-05 at 12:16 +, Gnerlich, Manuel (IPS PROJECTS GMBH) wrote: > Hello Bernd, > > thank you for your reply. > > I see them as ESTABLISHED and TIME_WAIT in netstat. The connections with > ESTABLISHED state are ok and most under 100, but the connections with > TIME_WAIT state

Re: I/O reactor status: STOPPED

2016-10-04 Thread Oleg Kalnichevski
pidocs/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.html#getAuditLog() Oleg > Joan. > > -Mensaje original----- > De: Oleg Kalnichevski [mailto:o...@ok2consulting.com] > Enviado el: martes, 4 de octubre de 2016 13:59 > Para: HttpClient User Discussion; Joan B

Re: I/O reactor status: STOPPED

2016-10-04 Thread Oleg Kalnichevski
On October 4, 2016 12:52:42 PM GMT+02:00, "Joan Balagueró" wrote: >Hello, > >I'm occassionally receiving this error, and the async pool stops >working: > >java.lang.IllegalStateException: Request cannot be executed; I/O >reactor >status: STOPPED >at

Re: TimeoutException in async pool

2016-10-03 Thread Oleg Kalnichevski
On Mon, 2016-10-03 at 10:45 +0200, Joan Balagueró wrote: > Thanks Stefan and yes, that's right. And I already told my client to modify > these settings. But I still have the doubt about why a Timeout exception in a > pool that has no upper limit in the number of pooled connections. > > This

Re: UrlEncodedFormEntity and parameter value encoding

2016-09-24 Thread Oleg Kalnichevski
On Sat, 2016-09-24 at 10:50 +0200, Philippe Mouawad wrote: > Hi Oleg, > If you look at : > https://bz.apache.org/bugzilla/show_bug.cgi?id=60120 > You can see that this encoding can break some applications. > > If I read https://en.wikipedia.org/wiki/Percent-encoding#The_ >

Re: Retries with the async client

2016-09-23 Thread Oleg Kalnichevski
On Wed, 2016-09-21 at 13:51 +0200, Joan Balagueró wrote: > Hello, > > I’m trying to retry ‘NoHttpResponse’ exceptions with the async client. The > point is I’m unable to generate this kind of error from my server. So my > question is: does this kind of exceptions that can be retried reach the >

Re: UrlEncodedFormEntity and parameter value encoding

2016-09-18 Thread Oleg Kalnichevski
On Sun, 2016-09-18 at 16:27 +0200, Philippe Mouawad wrote: > On Sunday, September 18, 2016, Oleg Kalnichevski <ol...@apache.org> wrote: > > > On Sun, 2016-09-18 at 16:12 +0200, Philippe Mouawad wrote: > > > So is it a bug ? or a regular behaviour ? > > > >

Re: UrlEncodedFormEntity and parameter value encoding

2016-09-18 Thread Oleg Kalnichevski
On Sun, 2016-09-18 at 16:12 +0200, Philippe Mouawad wrote: > So is it a bug ? or a regular behaviour ? > We back to where we started. Why do you think it should not be encoded? Oleg > thanks > > On Sunday, September 18, 2016, Oleg Kalnichevski <ol...@apache.org> wrote: &

Re: UrlEncodedFormEntity and parameter value encoding

2016-09-18 Thread Oleg Kalnichevski
On Sun, 2016-09-18 at 15:11 +0200, Philippe Mouawad wrote: > Hi Oleg, > Thanks for rapid answer. > Correct me if I am wrong but: > - URLENCODER is built from an or on UNRESERVED (which contains '_', '-', > '.', '*' and a-z, A-Z, 0-9. > > URLENCODER is passed as safechars in > private static

Re: UrlEncodedFormEntity and parameter value encoding

2016-09-18 Thread Oleg Kalnichevski
On Sun, 2016-09-18 at 14:08 +0200, Philippe Mouawad wrote: > On Sunday, September 18, 2016, Oleg Kalnichevski <ol...@apache.org> wrote: > > > On Sat, 2016-09-17 at 15:55 +0200, Philippe Mouawad wrote: > > > Hello, > > > We have a bug report at JMeter :

Re: UrlEncodedFormEntity and parameter value encoding

2016-09-18 Thread Oleg Kalnichevski
On Sat, 2016-09-17 at 15:55 +0200, Philippe Mouawad wrote: > Hello, > We have a bug report at JMeter : > https://bz.apache.org/bugzilla/show_bug.cgi?id=60120 > > Where a user post a form with a parameter having this value > 'IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs' > > It appears that the '@'

Re: Reading only the first X bytes of the response stream

2016-09-03 Thread Oleg Kalnichevski
On Thu, 2016-09-01 at 12:10 -0400, Dan Quaroni wrote: > I'm writing a utility that will retrieve some metadata about swf (flash) > files and I'd like to use httpclient to read the data but I want clarity on > the necessity to read the entire stream. > > The information I need is all in the first

Re: Closing HTTP connection of indefinite length

2016-09-01 Thread Oleg Kalnichevski
On August 30, 2016 10:26:29 PM GMT+02:00, Steven Schlansker <stevenschlans...@gmail.com> wrote: >Thanks for the leads -- more questions inline. > >> On Aug 30, 2016, at 11:36 AM, Oleg Kalnichevski <ol...@apache.org> >wrote: >> >> On Mon, 2016-08-29 at 13:49

Re: Closing HTTP connection of indefinite length

2016-08-30 Thread Oleg Kalnichevski
On Mon, 2016-08-29 at 13:49 -0700, Steven Schlansker wrote: > Hi httpclient-users, > > I am using HttpClient 4.5.2 / HttpCore 4.4.5 to connect to a streaming > endpoint. The endpoint returns chunked records essentially forever. > My application consumes these never ending records until an

Re: Receiving error "java.io.IOException: Host name 'localhost' does not match the certificate subject provided by the peer"

2016-08-24 Thread Oleg Kalnichevski
On Tue, 2016-08-23 at 21:41 -0400, Sachin Nikumbh wrote: > Hello, > > I am working on a client application that is using > both CloseableHttpAsyncClient and CloseableHttpClient with HTTPS. My > application is sending a POST request with large amount of data and bunch > of GET requests as well. I

Re: CloseableHttpClient and custom verification of SSL session

2016-08-22 Thread Oleg Kalnichevski
On August 21, 2016 10:50:47 PM GMT+02:00, Sachin Nikumbh wrote: >Hi all, > >I am using CloseableHttpClient to support HTTPS. I need to do some >client >side verification after receiving the server certificate. This needs to >happen immediately after the SSL handshake and

Re: Can a 201 (Created) response cause HTTP async client to prematurely send a FIN to the server?

2016-08-19 Thread Oleg Kalnichevski
On Fri, 2016-08-19 at 14:28 -0400, Sachin Nikumbh wrote: > If the client is aborting the request after it receives the 201 response, > is there any way to overwrite this behavior from the user's point of view? > If I were to look into the source code to see where it is done, can someone > please

Re: Trouble compiling httpcomponents-client-4.5.2 due to missing org.apache.http.annotation.Immutable and org.apache.http.annotation.NotThreadSafe classes

2016-08-19 Thread Oleg Kalnichevski
On Fri, 2016-08-19 at 14:26 -0400, Sachin Nikumbh wrote: > Hi > > I am trying to compile httpcomponents-client-4.5.2 and it's failing to find > bunch of classes including org.apache.http.annotation.Immutable, > org.apache.http.annotation.NotThreadSafe. Which package are these classes > part of? I

Re: Support for HTTP/2

2016-08-15 Thread Oleg Kalnichevski
On Mon, 2016-08-15 at 06:44 +, Refael Botbol wrote: > Hi HTTPClient user list, > > I was wondering if there is an ETA to support HTTP/2 ? > > I've found this > > thread from

Re: HttpAsyncRequestProducer is not sending content fully with HTTPS

2016-08-12 Thread Oleg Kalnichevski
On Fri, 2016-08-12 at 13:02 +0900, Koji Kawamura wrote: > Hello httpclient community, > > I'm having an issue with HTTPS and HttpAsyncRequestProducer > combination, so I would like to ask for some help. > > I've been using httpclient HttpAsyncRequestProducer to make a > non-blocking HTTP POST

Re: Building a parsed body cache atop the http caching client

2016-07-01 Thread Oleg Kalnichevski
On Fri, 2016-07-01 at 00:04 -0400, Donald Ball wrote: > Hi folks. I'm using the caching http client to nice effect, thanks for the > good work. > > Since parsing json and other structured response bodies is not actually the > fastest process in the world, I thought it would be a useful

[ANNOUNCEMENT] HttpComponents HttpAsyncClient 4.1.2 GA Released

2016-06-27 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.1.2 GA release of HttpComponents HttpAsyncClient. This is a maintenance release that fixes a number of minor issues discovered since 4.1.1 and upgrades HttpCore and HttpClient dependencies. --- Download -

Re: Telling HC to make new connections all the time

2016-06-22 Thread Oleg Kalnichevski
On Wed, 2016-06-22 at 07:07 -0400, Benson Margulies wrote: > On Wed, Jun 22, 2016 at 3:05 AM, Stefan Magnus Landrø > wrote: > > Hi Benson, > > > > Have you considered implementing a custom > >

Re: Help/Advise debugging SocketException in BHttpConnectionBase.fillInputBuffer()

2016-06-22 Thread Oleg Kalnichevski
On Wed, 2016-06-22 at 13:00 +0200, Mark Rekveld wrote: > Hi, > > I would like to ask for your assistance to resolve an issue that we are > facing that has the nature of being a race condition. > > The problem is that a SocketException is thrown in the finally clause of >

Re: Telling HC to make new connections all the time

2016-06-21 Thread Oleg Kalnichevski
tion manager becomes idle after a period of heavy activity. Oleg > > On Tue, Jun 21, 2016 at 4:41 AM, Oleg Kalnichevski <ol...@apache.org> wrote: > > On Mon, 2016-06-20 at 13:57 -0400, Benson Margulies wrote: > >> We use the async http components library to conn

Re: Telling HC to make new connections all the time

2016-06-21 Thread Oleg Kalnichevski
On Mon, 2016-06-20 at 13:57 -0400, Benson Margulies wrote: > We use the async http components library to connect various components > in a system that is deployed, in some cases, on AWS. When it's > deployed on AWS, there are ELBs involved. > > Like some other people, we've having various trauma

[ANNOUNCEMENT] HttpComponents Core 4.4.5 GA released

2016-06-14 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.4.5 GA release of HttpComponents Core. This is a maintenance release that fixes a number of issues discovered since 4.4.4. Please note that as of 4.4 HttpCore requires Java 1.6 or newer. Download -

Re: Keep-Alive

2016-06-13 Thread Oleg Kalnichevski
On Mon, 2016-06-13 at 11:23 -0700, Rallavagu wrote: > > On 6/7/16 6:13 AM, Oleg Kalnichevski wrote: > > On Mon, 2016-06-06 at 13:43 -0700, Rallavagu wrote: > >> HttpClient 4.3.2, JDK 7 > >> > >> I was doing something similar to what is talked in this link

Re: ManagedNHttpClientConnectionImpl Shutdown Vs. Close

2016-06-10 Thread Oleg Kalnichevski
On Fri, 2016-06-10 at 14:15 +, Poonam Chawla wrote: > Hello Oleg, > > > I am using Apache HttpAsycnClient 4.1 and I noticed that the > connections are not released on calling close. > Here is what I am trying to do: (Please note that it is not a > compileable code as I had to remove lines

Re: How to retrieve server ip of the connected connections

2016-06-10 Thread Oleg Kalnichevski
On Thu, 2016-06-09 at 19:40 +, Vicky Singh wrote: > > > I am using PoolingHttpClientConnectionManager to create connections. I would > like to get what IP address my connections resolve to. Is there a API that I > can use. > I need it for reporting and also to drop connections if I think

Re: Backward compatibility report

2016-06-08 Thread Oleg Kalnichevski
pcore-4.2.5.jar) and > therefore it was not taken into account. I'll try to fix the report soon. > Great! Are you by any chance going to build a Maven plugin for your report generator? I would love to replace Clirr plugin with something better. Oleg > 07.06.2016, 16:09, "Oleg Kalniche

Re: SSL problem when using pooling connection manager

2016-06-07 Thread Oleg Kalnichevski
should be perfectly capable of setting different SSL contexts based on hostname / DNS / HttpContext attributes. Oleg > Ivan > > 2016-06-07 15:18 GMT+02:00 Oleg Kalnichevski <ol...@apache.org>: > > > On Tue, 2016-06-07 at 11:06 +0200, Ivan Brencsics wrot

Re: SSL problem when using pooling connection manager

2016-06-07 Thread Oleg Kalnichevski
On Tue, 2016-06-07 at 11:06 +0200, Ivan Brencsics wrote: > Hi, > > I have some trouble using SSL together > with PoolingHttpClientConnectionManager. > > I create an HttpClient by setting both the SSLContext and ConnectionManager > and the SSLContext is ignored. I read that others had the same

Re: Keep-Alive

2016-06-07 Thread Oleg Kalnichevski
On Mon, 2016-06-06 at 13:43 -0700, Rallavagu wrote: > HttpClient 4.3.2, JDK 7 > > I was doing something similar to what is talked in this link related to > http commons client 3.x > > http://httpcomponents.10934.n7.nabble.com/quot-Keep-alive-quot-stale-connections-and-socket-reuse-td15315.html

Re: Backward compatibility report

2016-06-07 Thread Oleg Kalnichevski
On Mon, 2016-06-06 at 18:09 +0300, Ponomarenko Andrey wrote: > Hello, > > I've prepared backward compatibility reports for HttpClient and HttpCore > libraries: > > http://abi-laboratory.pro/java/tracker/timeline/httpclient/ > http://abi-laboratory.pro/java/tracker/timeline/httpcore/ > > I hope

Re: Multipart Mixed

2016-06-03 Thread Oleg Kalnichevski
On Thu, 2016-06-02 at 12:52 +0200, Stefan Magnus Landrø wrote: > Hi there, > > We're struggeling with some limitations in the current multipart > implementation in 4.5 (latest). > > The MultipartEntityBuilder is actually building a MultipartFormEntity, > whereas we actually want to be able to

Re: I/O dispatch worker terminated abnormally, what to do?

2016-05-31 Thread Oleg Kalnichevski
On Mon, 2016-05-30 at 21:37 +, John Price wrote: > We're using the HttpAsyncClient to make calls from within our own server > application. Periodically (once a week or less), our service stops being > able to make requests and we see errors of the form: > > java.lang.IllegalStateException:

Re: How to debug a hang during POST

2016-05-25 Thread Oleg Kalnichevski
On Tue, 2016-05-24 at 17:24 +0100, Tim Dudgeon wrote: > Hi, I'm having problems with a POST operation that's being done along > these lines: > > HttpPost post = new HtttpPost("http://.;); > post.addHeader("name", "value"); // etc > post.setEntity( ... ); > CloseableHttpResponse resp =

Re: using apache httpclient efficiently in multithreaded environment

2016-05-15 Thread Oleg Kalnichevski
te representations of response content. If your application layer ultimately expects JSON objects as input you should be creating JSON objects directly from the underlying content stream instead of building an intermediate string and then parsing it to JSON. Oleg > On Fri, May 13, 2016 at 4:03

Re: using apache httpclient efficiently in multithreaded environment

2016-05-13 Thread Oleg Kalnichevski
On Thu, 2016-05-12 at 13:17 -0700, Check Peck wrote: > I have a library which is being used by customer and they are passing > DataRequest object which has userid, various timeouts and some other fields > in it. Now I use this DataRequest object to make a URL and then I make an > HTTP call using

Re: Apache HttpClient TCP Keep-Alive (socket keep-alive)

2016-05-12 Thread Oleg Kalnichevski
onentsClientHttpRequestFactory(client); --- Hope this helps Oleg > Thanks, > Baratali Izmailov. > > On 12 May 2016 at 09:53, Oleg Kalnichevski <ol...@apache.org> wrote: > > > On Thu, 2016-05-12 at 09:23 +0100, Baratali Izmailov wrote: > > > Hello

Re: Apache HttpClient TCP Keep-Alive (socket keep-alive)

2016-05-12 Thread Oleg Kalnichevski
On Thu, 2016-05-12 at 09:23 +0100, Baratali Izmailov wrote: > Hello. Thanks for the quick response. > > > Is there any way you can turn this into 2 requests? > For now we cannot split this into 2 HTTP requests, because we have to > change client-server protocol communication and re-implement some

Re: Apache HttpClient TCP Keep-Alive (socket keep-alive)

2016-05-11 Thread Oleg Kalnichevski
On Wed, 2016-05-11 at 15:52 +0100, Baratali Izmailov wrote: > Hello, > > I have http request that takes too much time to be processed by the server > (about 5 minutes). Because connection becomes idle for 5 minutes, proxy > server shutdowns the connection. I'm trying to use TCP Keep-Alive in

Re: HttpClient with a web service: Consistent data center switch-over

2016-05-06 Thread Oleg Kalnichevski
On Fri, 2016-05-06 at 07:17 -0700, Aaron Curley wrote: > On 5/6/2016 5:15 AM, Oleg Kalnichevski wrote: > > On Thu, 2016-05-05 at 07:12 -0700, Aaron Curley wrote: > >> On 5/3/2016 9:49 AM, Oleg Kalnichevski wrote: > >>> On Tue, 2016-05-03 at 09:15 -0700, Aaron Curley

Re: NoHttpResponseException received at startup

2016-05-06 Thread Oleg Kalnichevski
On Thu, 2016-05-05 at 14:46 +, Pete Keyes wrote: > Update for the elapsed time for these calls that fail strictly at startup. > The stair-step 5/25/500... was strictly due to a pause we insert between > retries. All 4 tries fail within 5ms. > > Given the configuration settings for

Re: HttpClient with a web service: Consistent data center switch-over

2016-05-06 Thread Oleg Kalnichevski
On Thu, 2016-05-05 at 07:12 -0700, Aaron Curley wrote: > On 5/3/2016 9:49 AM, Oleg Kalnichevski wrote: > > On Tue, 2016-05-03 at 09:15 -0700, Aaron Curley wrote: > >> On 5/3/2016 8:22 AM, Oleg Kalnichevski wrote: > >>> On Mon, 2016-05-02 at 21:28 -0700, Aaron

Re: HttpClient with a web service: Consistent data center switch-over

2016-05-03 Thread Oleg Kalnichevski
On Tue, 2016-05-03 at 09:15 -0700, Aaron Curley wrote: > On 5/3/2016 8:22 AM, Oleg Kalnichevski wrote: > > On Mon, 2016-05-02 at 21:28 -0700, Aaron Curley wrote: > >> Hello all, > >> > >> I'm using HttpClient version 4.5.1 to make high-volume calls to an > &

Re: HttpClient with a web service: Consistent data center switch-over

2016-05-03 Thread Oleg Kalnichevski
On Mon, 2016-05-02 at 21:28 -0700, Aaron Curley wrote: > Hello all, > > I'm using HttpClient version 4.5.1 to make high-volume calls to an internal > highly-available web service that is hosted at multiple geographic locations. > On average, the web service calls need to be executed rather

Re: ResponseContentEncoding behaviour in HttpClient 4.5.2 and 5.0

2016-05-01 Thread Oleg Kalnichevski
compression (and thus response message modification) and manually decompressing response entity as appropriate. Oleg > Regards > > On Sunday, May 1, 2016, Oleg Kalnichevski <ol...@apache.org> wrote: > > > On Sun, 2016-05-01 at 17:22 +0200, Philippe Mouawad wrote: > &g

Re: ResponseContentEncoding behaviour in HttpClient 4.5.2 and 5.0

2016-05-01 Thread Oleg Kalnichevski
menting it look ok to you: > >- https://bz.apache.org/bugzilla/attachment.cgi?id=33817=diff > > Or can it break something in HttpClient ? > > Thanks > Regards > > On Sun, May 1, 2016 at 5:18 PM, Oleg Kalnichevski <ol...@apache.org> wrote: > > >

Re: ResponseContentEncoding behaviour in HttpClient 4.5.2 and 5.0

2016-05-01 Thread Oleg Kalnichevski
On Sun, 2016-05-01 at 16:08 +0200, Philippe Mouawad wrote: > Hello, > We have a regression report in JMeter 3.0 due to what seems to be a new > behaviour of HttpClient 4.5.2, introduced on Feb 25, 2014 by: > >- > >

Re: Question about ThreadSafeClientConnManager change maxTotal on fly

2016-05-01 Thread Oleg Kalnichevski
On Fri, 2016-04-29 at 14:51 +0200, NGUYEN-VIET Quang wrote: > Hello, > > We use httpclient 4.1. ( we plan to upgrade soon) > > Juste a simple question about how connection pool behave when we change > maxTotal on fly, without releasing connetions in use. ( with > releaseConnection() for

Re: Pooling Connection Manager Issue

2016-04-26 Thread Oleg Kalnichevski
On Tue, 2016-04-26 at 15:37 +, Gordon Ross wrote: > > On 26 Apr 2016, at 15:55, Oleg Kalnichevski <ol...@apache.org> wrote: > > > > Could you please make the entire log available? > > What logs do you want? Currently, I’ve got set: > >

Re: Pooling Connection Manager Issue

2016-04-26 Thread Oleg Kalnichevski
On Tue, 2016-04-26 at 11:27 +, Gordon Ross wrote: > I’m using HTTP Client 4.3.5 with Java 1.7 on Ubuntu Linux. > > I’m having problems where the pooling connection manager suddenly claims to > have no routes to a host. > > Usually, in my logs I see: > > 2016-04-26 11:13:08,588

Re: httpasyncclient BasicAsyncRequestProducer prevents HttpRequestInterceptor from replacing HttpEntity of the request

2016-04-22 Thread Oleg Kalnichevski
On Wed, 2016-04-20 at 15:03 +, Sven Zethelius wrote: > I am trying to use a HttpRequestInterceptor to adapt a request sent to a > org.apache.http.impl.nio.client.CloseableHttpAsyncClient. I want to do > request body compression (e.g. Content-Encoding: gzip for HttpRequest, not >

Re: HttpClientBuilder does not use system properties for proxy

2016-04-15 Thread Oleg Kalnichevski
On Fri, 2016-04-15 at 11:59 +0200, Philip Kahle wrote: > Hi, > > I am instantiating a HttpClientBuilder like this and tried to make it > use the Java system properties for a proxy server via useSystemProperties(): > > protected static HttpClientBuilder builder; > ... >

Re: Proxy Authentication Strategy

2016-04-09 Thread Oleg Kalnichevski
On Thu, 2016-04-07 at 17:54 +, Mark A. Claassen wrote: > Apache HTTPClient 4.4.1 > > I was doing some more tests with proxy authentication and I ran into > something I didn't expect. AuthenticationStrategyImpl goes though the list > of schemes ( SPNEGO, NTLM, ...) to find the ones that

Re: Why no setServiceUnavailableRetryHandler in the AsyncClientBuilder?

2016-03-31 Thread Oleg Kalnichevski
On Tue, 2016-03-29 at 14:12 -0400, Benson Margulies wrote: > Please see subject. Is there some other way around it? > Hi Benson HttpAsyncClient presently can not automatically retry requests. One has to re-submit failed requests manually. Oleg

<    1   2   3   4   5   6   7   8   9   10   >