Re: Response timeout issue

2019-06-06 Thread Oleg Kalnichevski
On Wed, 2019-06-05 at 16:19 +0200, Joan grupoventus wrote: > Hi Oleg, > > Still dealing with this stuck connections. I could get traces from > httpClient5 and we see all connections busy: > 08:12:56.031 ex-00E1DFB8: acquiring connection with route {}-> > http://10.15.15.14:8082 > 08:12:56.087

Re: Selecting private key with Windows-MY

2019-06-05 Thread Oleg Kalnichevski
On Tue, 2019-06-04 at 23:33 +0200, Michael Osipov wrote: > Folks, > > I am trying to perform TLS auth with a PKCS12 and Windows-MY > keystores > with HttpClient 4.5.6 + Java 8, Update 212. > > While with the .p12 (contains one key and its cert) file everything > goes > smoothly and fast, I am

Re: HttpClient 5.0 release

2019-06-04 Thread Oleg Kalnichevski
On Tue, 2019-06-04 at 16:23 +, Puneet Prakash wrote: > Hi, > > > What is it exactly that stops you from using HttpClient 5.0 right > > now? > > it is our policy for our products, not to depend on beta versions of > third party dependencies. > I see now. For a moderate consulting fee I can

Re: Constructing multipart/mixed requests

2019-06-02 Thread Oleg Kalnichevski
On June 2, 2019 4:30:44 PM GMT+02:00, Adam Retter wrote: >Oleg, > >Attached is a first draft for a patch against 5.0 to make the >Multipart stuff more applicable for those people who don't want >multipart/form-data. What would be the next stage to progress this? > Could you please submit this

Re: Constructing multipart/mixed requests

2019-06-02 Thread Oleg Kalnichevski
On Sun, 2019-06-02 at 09:47 +0100, Adam Retter wrote: > > > On my system that produces a HTTP Request like: > > > > > > POST / HTTP/1.1 > > > Content-Length: 456 > > > Content-Type: multipart/form-data; > > > boundary=ZQwFLuoO6V1SFdqg2lI6DaVwlvKIZjj2Pb > > > > I can change this content-type by

Re: Constructing multipart/mixed requests

2019-06-02 Thread Oleg Kalnichevski
On Sat, 2019-06-01 at 23:27 +0100, Adam Retter wrote: > Hi Norm, > > I think this might be what you are looking for: > > package norm1; > > import org.apache.http.HttpEntity; > import org.apache.http.client.methods.HttpPost; > import org.apache.http.entity.ContentType; > import

Re: Response timeout issue

2019-05-30 Thread Oleg Kalnichevski
started Tomcat, we could only get a thread stack ... not > sure if this can be of any utility but I could attach it ... > > Thanks, > > Joan. > > > -Original Message- > From: Oleg Kalnichevski > Sent: Monday, May 27, 2019 11:10 PM > To: HttpClient User Dis

Re: HttpClient 5.0 release

2019-05-30 Thread Oleg Kalnichevski
On Tue, 2019-05-28 at 18:21 +, Puneet Prakash wrote: > Hello, > > We are currently using HttpClient 4.5.X and cannot move to HttpClient > 5.0 given its beta status. Do you have a release date for HttpClient > 5.0 GA ? > > Thanks, > Puneet I consider August / September time frame quite

Re: Response timeout issue

2019-05-27 Thread Oleg Kalnichevski
Joan Please raise a JIRA for this issue and attach a wire log with time stamps of a _complete_ message exchange demonstrating the incorrect behavior. I will review connection management code tomorrow. Oleg On Mon, 2019-05-27 at 19:33 +0200, Joan ventusproxy wrote: > Hello, > > � > > We

Re: Regarding JARS supported by JAVA 11 or not

2019-05-27 Thread Oleg Kalnichevski
On Mon, 2019-05-27 at 15:32 +0530, Ravi Verma wrote: > Hi, > > We are using the following jars in our product: > > httpclient-4.5.6.jar > httpcore-4.4.10.jar > > We need confirmation on - Do these jars supported with JDK 11.? > > Could you please let us know on this? > I am not sure I

Re: Http Client 5 Questions

2019-05-09 Thread Oleg Kalnichevski
On Thu, 2019-05-09 at 07:31 -0700, Ryan Bergman wrote: > Hello, > >I am the current maintainer of the Kong/unirest-java library. > Unirest > has always been a simplified fluent wrapper for Apache Http Client. > Recently with Apache Client 5 in beta I decided to start playing > around > with

Re: AsyncResponseConsumer thread stucked

2019-05-09 Thread Oleg Kalnichevski
On Thu, 2019-05-09 at 12:42 +0200, Joan grupoventus wrote: > Hello, > > I can reproduce the issue, a HEAD method is being used, not GET. So > sending a HEAD method to our application using an > AsyncResponseConsumer hangs forever after calling the > 'consumeResponse' method (but sending the same

Re: AsyncResponseConsumer thread stucked

2019-05-09 Thread Oleg Kalnichevski
On Wed, 2019-05-08 at 19:24 +0200, Joan grupoventus wrote: > Hello, > > > > We are having the following issue. Before going deeper (traces, etc) > we would like to explain what we are seeing: > > > > HttpClient5 beta4 and HttpCore beta7 using an AsyncResponseConsumer. > > Requesting,

Re: Constructing multipart messages

2019-04-15 Thread Oleg Kalnichevski
On Sat, 2019-04-13 at 10:03 -0500, Norman Walsh wrote: > Hi, > > I recently upgraded from an earlier version of httpclient where I was > able to construct multipart messages “by hand”. However, the recent > refinements added to check the content type of my message now cause > that approach to

[ANNOUNCEMENT] HttpComponents Client 5.0 beta4 released

2019-04-08 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta4 release of HttpComponents Client. This BETA release picks up the latest fixes and performance improvements from HttpCore and addresses a number of issues found since the previous BETA release. Notable new features in this

Re: Socket timeout exception with HttpClient5

2019-04-05 Thread Oleg Kalnichevski
help? > > Thanks, > Joan. > Please upgrade to BETA4 and re-test. I will need a complete wire/context log of the session and preferably a self-contained test app that demonstrates the usage of HC APIs. GitHub may be a reasonable choice to host both the app and the log. Oleg > &

Re: Socket timeout exception with HttpClient5

2019-04-05 Thread Oleg Kalnichevski
Oleg, > > Attached the http client log (finally) for one request that ends up > with Socket timeout. > > Thanks, > > Joan. > > -Original Message- > From: Oleg Kalnichevski [mailto:ol...@apache.org] > Sent: Thursday, April 4, 2019 8:31 PM > To: HttpClient U

Re: Socket timeout exception with HttpClient5

2019-04-04 Thread Oleg Kalnichevski
lient 4 I was using "org.apache.http.impl.conn" , > "org.apache.http.impl.client" and "org.apache.http.client". > > Thanks, > > Joan. > > -Original Message- > From: Oleg Kalnichevski [mailto:ol...@apache.org] > Sent: Thursday, April 4, 2019 7:56 PM

Re: Socket timeout exception with HttpClient5

2019-04-04 Thread Oleg Kalnichevski
On Thu, 2019-04-04 at 16:20 +0200, joan.balagu...@grupoventus.com wrote: > Hello Oleg, > > I've come across with the following issue. Our application is > contacting > with a webservice that returns information about the requested > hotels. > More hotels in the request, bigger the response size.

Re: HttpClient 5

2019-04-04 Thread Oleg Kalnichevski
On Wed, 2019-04-03 at 21:29 +0200, Joan grupoventus wrote: > Hello, > > > > Do you have a release date in mind for HttpClient5 GA? > > > > Thanks, > > > > Joan. > Hi Joan I will start a thread on time frame for 5.0 API freeze at d...@hc.apache.org Oleg

[ANNOUNCEMENT] HttpComponents Client 4.5.8 GA Released

2019-04-01 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.5.8 GA release of HttpComponents HttpClient. This is a maintenance release that makes request URI normalization configurable on per request basis and also ports several improvements in URI handling from HttpCore master. Download -

Re: No response received by httpclient.execute(httppost) on long request

2019-03-29 Thread Oleg Kalnichevski
g.apache.http.wire] http-outgoing-0 > >> "Host: ci.company.com[\r][\n]" > > 2019-03-29 18:31:42,731 DEBUG [org.apache.http.wire] http-outgoing-0 > >> "Connection: Keep-Alive[\r][\n]" > > 2019-03-29 18:31:42,731 DEBUG [org.apache.http.wire] http-outgoing-0 > &g

Re: No response received by httpclient.execute(httppost) on long request

2019-03-29 Thread Oleg Kalnichevski
-Mark > > > > > ---- On Fri, 29 Mar 2019 08:12:34 -0700 Oleg Kalnichevski < > ol...@apache.org> wrote > > > > On Fri, 2019-03-29 at 08:09 -0700, Mark Cafaro wrote: > > > What makes me think it's a client side issue is that I can take

Re: No response received by httpclient.execute(httppost) on long request

2019-03-29 Thread Oleg Kalnichevski
t; > So what? That means absolutely nothing. Clients can behave differently enough to trigger a different execution path on the server side. Oleg > > I'll try turning on wire logging and see if that gives me any clues. > Thanks. > > > > > ---- On Fri, 29 Mar 20

Re: No response received by httpclient.execute(httppost) on long request

2019-03-29 Thread Oleg Kalnichevski
On Fri, 2019-03-29 at 06:34 -0700, Mark Cafaro wrote: > The call to httpclient.execute() is just stuck until the eventual > socket timeout is reached. > > What makes you think this is a client side issue? Have you tried running your application with HttpClient wire logging turned out and

Re: No response received by httpclient.execute(httppost) on long request

2019-03-29 Thread Oleg Kalnichevski
On Thu, 2019-03-28 at 17:28 -0700, Mark Cafaro wrote: > Hi, > > > > I am running long HTTP post requests on Travis CI (Ubuntu 14.04) > using the Apache HTTP Client. Strangely if a request exceeds about 8 > minutes, the client never receives a response. I can see on the > server side, however,

Re: R: RequestConfig socket, connect and connectionRequest timeout default values

2019-03-06 Thread Oleg Kalnichevski
a connection from > PoolingHttpClientConnectionManager? > I can understand a socket timeout or a connection one but not a > connectionRequestTimeout > For instance, being the same as connect timeout. Oleg > Thanks again, bye > > -----Messaggio originale- > Da: Oleg Kalnichevski > Inviato: merc

Re: RequestConfig socket, connect and connectionRequest timeout default values

2019-03-06 Thread Oleg Kalnichevski
On Wed, 2019-03-06 at 08:31 +, Raffaele Gambelli wrote: > Hi all, > > what does it mean this sentence in getConnectTimeout, > getConnectionRequestTimeout and getSocketTimeout: > > " A timeout value of zero is interpreted as an infinite timeout. A > negative value is interpreted as undefined

Re: HTTP request parser

2019-03-06 Thread Oleg Kalnichevski
nd it a custom Socket that reads data from an arbitrary input stream. https://github.com/apache/httpcomponents-core/blob/4.4.x/httpcore/src/main/java/org/apache/http/impl/DefaultBHttpClientConnection.java Hope this helps Oleg > On Wed, Mar 6, 2019, 09:28 Oleg Kalnichevski > wrote: > &

Re: HTTP request parser

2019-03-06 Thread Oleg Kalnichevski
On Wed, 2019-03-06 at 00:07 +0100, Jochen Wiedmann wrote: > Hi, > > I've got a set of files, which basically contain raw HTTP requests. > (I > obtained them by wiretrapping my own network traffic.) > > Now, I'd like to parse, and validate them. Is there something in > httpcomponents, that might

[ANNOUNCEMENT] HttpComponents Core 5.0 beta7 released

2019-03-04 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta7 release of HttpComponents Core. This BETA release adds support for SOCKS version 5, improves support for TLS handshake timeout configuration, improves URI builder, and fixes various defects. Notable changes and features included

Re: Thread named 'httpclient-main-1' not stopped when shutting down pool

2019-02-23 Thread Oleg Kalnichevski
On Fri, 2019-02-22 at 13:14 +0100, Joan Balagueró wrote: > Hello, > > > > When I shutdown my ‘CloseableHttpAsyncClient’instance (that has set a > ‘PoolingAsyncClientConnectionManager’) a thread called ‘httpclient- > main-1’ > is not stopped and the following message is logged in tomcat log: >

Re: How to do Http/2 correctly using apache-httpclient-5

2019-02-06 Thread Oleg Kalnichevski
On Wed, 2019-02-06 at 12:25 +0530, Santhosh Kumar wrote: > HI I m trying to write a client that makes http2 request to multiple > servers(which already supports http2). so far I have written this > standalone program which works fine that I can see all requests goes > via > same tcp

Re: HttpClient does not validate cookie's Path parameter

2019-01-30 Thread Oleg Kalnichevski
On Wed, 2019-01-30 at 14:31 +0200, Svetlin Zarev wrote: > Hi, > > HttpClientVersion 4.5.6/7 does not validate the cookie’s path > attribute. Is > this intentional ? > It depends on the _specific_ policy used by HttpClient and _specific_ version of the cookie being processed. Oleg > > With

Re: [ANNOUNCEMENT] HttpComponents Client 4.5.7 GA Released

2019-01-25 Thread Oleg Kalnichevski
Maven. > > > > Regards > > > > On Thu, Jan 24, 2019 at 10:34 PM Oleg Kalnichevski < > > ol...@apache.org> > > wrote: > > > > > The Apache HttpComponents project is pleased to announce 4.5.7 GA > > > release of HttpCompo

[ANNOUNCEMENT] HttpComponents Client 4.5.7 GA Released

2019-01-24 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.5.7 GA release of HttpComponents HttpClient. This is a maintenance release that corrects Automatic-Module-Name definitions added in the previous release and fixes a number of minor defects discovered since 4.5.6. Download -

[ANNOUNCEMENT] HttpComponents Core 4.4.11 Released

2019-01-21 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.4.11 GA release of HttpComponents Core. This is a maintenance release that corrects a number of defects in non blocking SSL session code that caused compatibility issues with TLSv1.3 protocol implementation shipped with Java 11. Please

Re: HttpClient 4.5 - make NTLM highest precedence authenticator when using HttpClientBuilder

2019-01-19 Thread Oleg Kalnichevski
On Sat, 2019-01-19 at 11:29 +1100, Chris Mugdan wrote: > Hi, > > I am using HttpClientBuilder to create an HttpClient with NTLM > authentication, but looking at the logs it tries SPNEGO first then > NTLM. > Since I am only interested in NTLM, to increase the efficiency of > requests I want it

Re: Release date for httpclient 4.5.7

2019-01-10 Thread Oleg Kalnichevski
9 at 2:33 PM Philippe Mouawad < > philippe.moua...@gmail.com> > wrote: > > > Hello, > > Happy new year 2019 to the team ! > > > > Thanks for answer. > > Any chance to release before end of january ? > > > > Regards > > >

Re: Issue about socketTimeout overriden during https handshake

2018-12-28 Thread Oleg Kalnichevski
On Fri, 2018-12-28 at 14:27 +0800, 陈飞 wrote: > Before handshake during https request, if connectTimeout is set > alone, > without socketTimeout, SSLConnectionSocketFactory#connectSocket will > override socketTimeout with connectTimeout and never change back, > anyone > know why? is it a flaw or

Re: Issue with deflate Content-Encode httpClient 4.1.3

2018-12-20 Thread Oleg Kalnichevski
; Thanks, > Aparna > > -Original Message- > From: Oleg Kalnichevski > Sent: Thursday, December 20, 2018 3:18 PM > To: Khare, Aparna ; HttpClient User Discussion > > Subject: Re: Issue with deflate Content-Encode httpClient 4.1.3 > > On Thu, 2018-12-20

Re: Release date for httpclient 4.5.7

2018-12-20 Thread Oleg Kalnichevski
On Wed, 2018-12-19 at 10:10 +0100, Philippe Mouawad wrote: > Hello, > > We have a bug in JMeter which requires availibility of httpclient > 4.5.7. > Since we'd like to release soon a new version, is there a visibility > on the > future release of 4.5.7 ? > > Thank you > Regards Likely Q1 2019

Re: Issue with deflate Content-Encode httpClient 4.1.3

2018-12-20 Thread Oleg Kalnichevski
eleased: [id: 0][route: {s}->https://httpbin.davecheney.com:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] { "deflated": true, "headers": { "Accept-Encoding": "gzip,deflate", "Content-Length": "

Re: Specifying different KeyManagers & TrustManagers for Proxy and Target Hosts (HttpClient 4.5 & HttpCore 4.4)

2018-12-20 Thread Oleg Kalnichevski
On Thu, 2018-12-20 at 02:53 +, Rahul Joshi wrote: > Hi, > I'm using HttpClient to connect to a target server via a proxy > server. Both the target host and the proxy host use TLS, but for TLS > mutual authentication, each has different server and client > certificate requirements. > Is there a

Re: Issue with deflate Content-Encode httpClient 4.1.3

2018-12-19 Thread Oleg Kalnichevski
> > outStream.write(value); > > value = inStream.read(); > > } > > response = outStream.toByteArray(); > > > > } > > > > It is not sending the byte[] properly.. > > I am sorry I do not understan

Re: Issue with deflate Content-Encode httpClient 4.1.3

2018-12-19 Thread Oleg Kalnichevski
On Wed, 2018-12-19 at 07:41 +, Khare, Aparna wrote: > Dear All, > > We have some constraints in moving to new httpclient and we are using > 4.1.3. Any help is appreciated. gzipContent works but deflated is not > working. > > if (response.getEntity() != null) { > HttpEntity entity =

[ANNOUNCEMENT] HttpComponents Client 5.0 beta3 released

2018-12-17 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta3 release of HttpComponents Client. This BETA release adds support for advanced TLS functions (such as ALPN protocol negotiation) on Java 1.7 and Java 1.8 through Conscrypt TLS library and picks up the latest fixes and performance

Re: Strange behaviour when using Proxy

2018-12-15 Thread Oleg Kalnichevski
estFromLocalContext.getRequestLine().getMet > hod(), > CoreMatchers.is("GET")); > Assert.assertThat(response.getStatusLine().getStatusC > ode(), > CoreMatchers.is(200)); > > Assert.assertThat(Arrays.asList(request.getAllHeaders()).toString(), > CoreMatchers.containsString("X-sleep")); > > Assert.assertThat(Arr

Re: Strange behaviour when using Proxy

2018-12-15 Thread Oleg Kalnichevski
ns only partial headers. > I am sorry I do not understand what it is exactly you consider to be a problem. Could you please create a GitHub project containing the test case with the correct asserts that clearly define your expectations? Oleg > Regards > > On Sat, Dec 15, 2018 a

Re: Strange behaviour when using Proxy

2018-12-15 Thread Oleg Kalnichevski
llHeaders()).toString(), > CoreMatchers.containsString("X-sleep")); > > Assert.assertThat(Arrays.asList(httpRequestFromLocalContext.getAllHea > ders()).toString(), > CoreMatchers.containsString("X-sleep")); >

Re: Strange behaviour when using Proxy

2018-12-15 Thread Oleg Kalnichevski
On Sat, 2018-12-15 at 00:40 +0100, Philippe Mouawad wrote: > Hello , > As a complement if you read the thread. > It appears TestProxy doesn’t enter in Tunnel_target mode while JMeter > does > which triggers the issue. > > How can I make HttpClient enter this mode using TestProxy code (in >

[ANNOUNCEMENT] HttpComponents Core 5.0 beta6 released

2018-12-06 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta6 release of HttpComponents Core. This BETA release adds support for advanced TLS functions (such as ALPN protocol negotiation) on Java 1.7 and Java 1.8 through Conscrypt TLS library, and fixes a number of defects found since the

Re: Authenticate in Microsoft Cloud, O365

2018-12-04 Thread Oleg Kalnichevski
der(credsProvider).bui > ld(); > > _httpclient = httpclient; > _httpHost = httpHost; > > The working document: > https://docs.microsoft.com/en-us/exchange/client-developer/exchange-server-development > > I'll continue looking around. Do you have any advice in the int

Re: Authenticate in Microsoft Cloud, O365

2018-12-04 Thread Oleg Kalnichevski
On Tue, 2018-12-04 at 14:03 +, David J. Godbey (HQ-LM020)[DIGITAL MANAGEMENT INC.] wrote: > Folks: > I did a quick search of the site, but I see no discussion of this. > Let me ask here, does httpclient know how to authenticate to the > Microsoft Cloud? > Thanks! > > Dave Godbey > Email:

Re: 2 HttpClient5 questions

2018-11-16 Thread Oleg Kalnichevski
On Fri, 2018-11-16 at 13:18 +0100, Joan Balagueró wrote: > Hello, > > > > I hope the last questions: > > > > 1. The validateAfterInactivity with a value of zero means no > validation? > Correct. > > > 2. Regarding the consume method, this is our implementation > now: > >

Re: RV: Migration from Async 4.1.3 to HttpClient 5

2018-11-10 Thread Oleg Kalnichevski
onnections to reuse, shouldn't > the max_conn value have preference? > > 2. Is TEST 5 ok? It seems the 'DefaultMaxPerRoute' cannot be applied > on the fly in a lax pool. It should have a value of 5000 but it's > preserving the previous value of 1 (test 4). > > > > Thanks , > >

Re: RV: Migration from Async 4.1.3 to HttpClient 5

2018-11-09 Thread Oleg Kalnichevski
ction for ip:8080, 1 for ip:8081, 1 for ip:80802 and > 1 for ip:80803? > Joan. > Correct. Oleg > -Mensaje original- > De: Oleg Kalnichevski [mailto:ol...@apache.org] > Enviado el: viernes, 9 de noviembre de 2018 15:01 > Para: HttpClient User Discussion > Asunto

Re: RV: Migration from Async 4.1.3 to HttpClient 5

2018-11-09 Thread Oleg Kalnichevski
and 1 (instead of 1 and 1). > > Is this a bug or am I missing something? > Max total is not enforced by the lax pool, only max per route. Oleg > Thanks, > > Joan. > > > -Mensaje original- > De: Oleg Kalnichevski [mailto:ol...@apache.org] > Enviado e

Re: RV: Migration from Async 4.1.3 to HttpClient 5

2018-11-08 Thread Oleg Kalnichevski
On Wed, 2018-11-07 at 19:30 +0100, Joan Balagueró wrote: > Hello Oleg, > > We are finishing the migration and have the last questions: > > 1. If a connection is kept-alive for 30s at second 0, and after 10s > is reused, this connection will die at second 30 or will survive > until second 40?

Re: Releasing a Pooled connection to pool - socket reuse address performance.

2018-11-05 Thread Oleg Kalnichevski
On Mon, 2018-11-05 at 15:56 +, jwhit...@redhat.com wrote: > Hi, > I am attempting to use the client API. Following the documentation > to > combine > > Pooling Connection Manager > + > Multithreaded request execution > + > keep-alive > + > re-use socket address > > I want to know how

[ANNOUNCEMENT] HttpComponents Client 5.0 beta2 released

2018-10-29 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta2 release of HttpComponents Client. This BETA release resolves compatibility issues with Java 11 new TLS engine as well as a number of defects found since the previous release. Notable new features in this release:

Re: Migration from Async 4.1.3 to HttpClient 5

2018-10-23 Thread Oleg Kalnichevski
commit/75ca519314b783ba0d314e84f3a7e3488a7c968c Oleg > > -Mensaje original- > De: Oleg Kalnichevski [mailto:ol...@apache.org] > Enviado el: domingo, 21 de octubre de 2018 13:11 > Para: HttpClient User Discussion > Asunto: Re: Migration from Async 4.1.3 to HttpClient 5 > > On

[ANNOUNCEMENT] HttpComponents Core 5.0 beta5 released

2018-10-22 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta5 release of HttpComponents Core. This BETA release adds support for Reactive Streams API [ http://www.reactive-streams.org/] and fixes compatibility issues with Java 11 new TLS engine as well as a number of defects found since the

Re: Migration from Async 4.1.3 to HttpClient 5

2018-10-21 Thread Oleg Kalnichevski
y provide a socket timeout per request setting for HTTP/1.1 transport only without exposing the same setting to HTTP/2 transport. Oleg -----Mensaje original- > De: Oleg Kalnichevski [mailto:ol...@apache.org] > Enviado el: sábado, 20 de octubre de 2018 18:17 > Para: HttpClient User Discus

Re: Migration from Async 4.1.3 to HttpClient 5

2018-10-19 Thread Oleg Kalnichevski
On Fri, 2018-10-19 at 18:01 +0200, Joan Balagueró wrote: > Hi Oleg, > > Thanks a lot for all your answers. I'll work on this a bit more. > > There is just one problematic thing for us. Our app is an api > gateway, and one important piece is the response timeouts between our > app and the client

Re: More about migration from async4.1.3 to http5

2018-10-19 Thread Oleg Kalnichevski
On Fri, 2018-10-19 at 16:02 +0200, Joan Balagueró wrote: > Hello, > > > > Just three more questions: > > > > 1. Is this the way to set a byte array to the RequestBuilder’s > entity > (using a org.apache.http.nio.entity.NByteArrayEntity)? > > > >

Re: Migration from Async 4.1.3 to HttpClient 5

2018-10-19 Thread Oleg Kalnichevski
On Fri, 2018-10-19 at 15:08 +0200, Joan Balagueró wrote: > Hello, > > > > We are in the process of migrating to HttpClient5 from > AsyncClient4.1.3, and > we have some quiestions: > > > > 1. this.rc = > RequestConfig.custom().setAuthenticationEnabled(false). > > >

Re: Broken pipe (Write failed) when making Unauthorized request

2018-10-11 Thread Oleg Kalnichevski
On Thu, 2018-10-11 at 15:41 +0500, Adam Retter wrote: > > > > 1. Turn on 'expect-continue' handshake. It is intended precisely > > for > > such situations. > > > > So I assume that for this I just set the HTTP Header, like so: > > httpPut.setHeader("Expect", "100-continue"); > > There is a

Re: Broken pipe (Write failed) when making Unauthorized request

2018-10-11 Thread Oleg Kalnichevski
On Wed, 2018-10-10 at 22:41 +0500, Adam Retter wrote: > I am using the Maven httpclient 4.5.6 artifact and trying to make a > PUT > request to a server. The server for some URLs requires > authentication, it > is impossible to know which URLs do and don't ahead of time. I only > want to > send the

Re: H2StreamResetExceptions and TimeoutExceptions seen when communicating with Apple's APNs service using HTTP/2

2018-09-25 Thread Oleg Kalnichevski
On Mon, 2018-09-24 at 16:56 +0200, Jack van Ooststroom wrote: > Recently we switched from the Apple's legacy Binary Provider API to > the  > newer HTTP/2 based API in order to send our notifications using APNs. > We  > decided on using Apache's HttpClient 5 in order to meet the HTTP/2  >

[ANNOUNCEMENT] HttpComponents Core 5.0 beta3 released

2018-08-29 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 5.0-beta3 release of HttpComponents Core.  This BETA release fixes a number of defects found since the previous release, adds several incremental improvements and improves javadoc documentation. IMPORTANT: As of next release we intent to

Re: A flaw in a Java sample

2018-08-28 Thread Oleg Kalnichevski
On Tue, 2018-08-28 at 15:13 +0800, B.E. wrote: > Hello sir, > > There is a flaw in this document(http://hc.apache.org/httpcomponents- > client- > ga/httpclient/examples/org/apache/http/examples/client/ClientConfigur > ation.java). > > Look at the picture below. > > > > Corrected.

Re: How to use HPACK with HttpClient 5

2018-08-23 Thread Oleg Kalnichevski
On Wed, 2018-08-22 at 16:57 +0200, Jack van Ooststroom wrote: > Hello, > > We started using HttpClient 5 in order for us to communicate with  > Apple's APNs service which requires the usage of HTTP/2. However, we > are  > currently running into an issue with the "apns-collapse-id" header.  >

Re: httpCore5 - ClassicGetExecutionExample

2018-08-08 Thread Oleg Kalnichevski
s-core/blob/master/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicGetExecutionExample.java Oleg > > On Wed, Aug 8, 2018 at 2:53 AM Oleg Kalnichevski > wrote: > > On Wed, 2018-08-08 at 00:14 -0700, Tommy Pham wrote: > > > Hello everyone, > > >  > &g

Re: httpCore5 - ClassicGetExecutionExample

2018-08-08 Thread Oleg Kalnichevski
On Wed, 2018-08-08 at 00:14 -0700, Tommy Pham wrote: > Hello everyone, > > I was trying to roll my own web crawler based upon the HTTP > Components v5.x > for my edification.  I was reviewing the ClassicGetExecutionExample: > >

Re: [read] I/O error: Socket is closed

2018-07-26 Thread Oleg Kalnichevski
On Thu, 2018-07-26 at 12:52 -0400, Marc Boorshtein wrote: > I'm making calls to OpenPolicyAgent (Go based web server).  GET calls > work > great, but POST fails to get any content.  When I turn on wire > logging i > see: > > [2018-07-26 16:28:12,193][XNIO-2 task-7] DEBUG wire - http-outgoing- >

Re: Proxy Connection fails with Apache HttpClient but succeeds with java.net.URLConnection

2018-07-25 Thread Oleg Kalnichevski
On Tue, 2018-07-24 at 20:50 +0530, Sreyan Chakravarty wrote: > I am on a Windows machine at work and am using HttpClient to make a > request > via a web proxy. But the problem is that I keep 407 Authentication > required > message. > > But if I do the same thing via the RestTemplate of Spring,

[ANNOUNCEMENT] HttpComponents HttpAsyncClient 4.1.4 GA Released

2018-07-23 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.1.4 GA release of HttpComponents HttpAsyncClient. This is a maintenance release that adds Automatic-Module-Name to the manifest for compatibility with Java 9 Platform Module System and fixes a number of issues discovered since 4.1.3

Re: Async client and gzip request : UnsupportedOperationException

2018-07-19 Thread Oleg Kalnichevski
On Thu, 2018-07-19 at 13:55 +0200, Gabriel Landais wrote: > Hi, > my scenario : > > 1. create an entity with an EntityBuilder and use > EntityBuilder.gzipCompress() > (it will create a GzipCompressingEntity) > 2. set entity on a compatible HttpUriRequest (HttpPost for instance) > 3. execute this

Re: http 5.0

2018-07-17 Thread Oleg Kalnichevski
On Tue, 2018-07-17 at 00:10 +0200, Joan Balagueró wrote: > Hello, > > Is there any scheduled  release date for HttpClient 5.0 (GA)? > > Thanks, > > Joan. > Joan We do not want to rush 5.0 API freeze. Not sooner than Q1 2019. Oleg > -Mensaje original--

Re: Associating a server push with the original client request

2018-07-15 Thread Oleg Kalnichevski
On Sun, 2018-07-15 at 21:41 +1000, Alex Osborne wrote: > On Sun, 15 Jul 2018, at 8:53 PM, Oleg Kalnichevski wrote: > > On Sun, 2018-07-15 at 16:36 +1000, Alex Osborne wrote: > > > If I receive a server push is it possible to determine which > > > client > >

Re: Associating a server push with the original client request

2018-07-15 Thread Oleg Kalnichevski
On Sun, 2018-07-15 at 16:36 +1000, Alex Osborne wrote: > If I receive a server push is it possible to determine which client > request it was sent in response to? Hi Alex Not unless the server is willing to help with that. Why do not you add a correlation id of a sort to the promised request

Re: Global lock in http pool

2018-07-10 Thread Oleg Kalnichevski
nager. Oleg > > -Mensaje original- > De: Oleg Kalnichevski [mailto:ol...@apache.org]  > Enviado el: martes, 10 de julio de 2018 13:22 > Para: HttpClient User Discussion > Asunto: Re: Global lock in http pool > > On Tue, 2018-07-10 at 12:01 +0200, Joan Balagueró wrot

Re: Global lock in http pool

2018-07-10 Thread Oleg Kalnichevski
On Tue, 2018-07-10 at 12:01 +0200, Joan Balagueró wrote: > Hello, > >   > > We are using the async http client 4.1.2 in our app (an api Gateway). > Several installations are managing more than 15.000 requests > simultaneous > opened, and now we are in the process to optimize some code in the >

[ANNOUNCEMENT] HttpComponents Client 4.5.6 GA Released

2018-07-09 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.5.6 GA release of HttpComponents HttpClient. This is a maintenance release that adds Automatic-Module-Name to the manifest for compatibility with Java 9 Platform Module System and fixes a number of issues discovered since 4.5.5 Download

[ANNOUNCEMENT] HttpComponents Core 4.4.10 Released

2018-07-03 Thread Oleg Kalnichevski
The Apache HttpComponents project is pleased to announce 4.4.10 GA release of HttpComponents Core. This is a maintenance release that adds Automatic-Module-Name to the manifest for compatibility with Java 9 Platform Module System and fixes a number of issues discovered since 4.4.9 Please note

Re: Redirection in httpClient

2018-06-25 Thread Oleg Kalnichevski
On Mon, 2018-06-25 at 09:14 +, Khare, Aparna wrote: > Hi All, >   >   We have moved our application to version 4.5.2 and we want to check > how we can configure our httpclient to handle redirection .. >   > We connect to the proxy agent which takes only http calls. The > redirected URL is

Re: HttpClient thread seems waiting for stuff for a long time and do not stop

2018-06-11 Thread Oleg Kalnichevski
gt; } catch (IOException e) { >    e.printStackTrace(); > } >  } >   } >    } > > > > > 在 2018年6月11日,下午11:26,zhangminglei <18717838...@163.com> 写道: > > > > Yes. I know it is leaking connections…. But

Re: HttpClient thread seems waiting for stuff for a long time and do not stop

2018-06-11 Thread Oleg Kalnichevski
ntStackTrace(); >      } >   } >   try { >  httpclient.close(); >   } catch (IOException e) { >  e.printStackTrace(); >   } >    } > } > > > > 在 2018年6月11日,下午10:27,Oleg Kalnichevski 写道: > > > > On Mon, 2018-06-

Re: HttpClient thread seems waiting for stuff for a long time and do not stop

2018-06-11 Thread Oleg Kalnichevski
On Fri, 2018-06-08 at 15:30 +0800, zhangminglei wrote: > Hi, friends. > >  I am using HttpClient for a few tests. And I use the below code to > run without success. But the process never stoped.  > I use jstack for this and found it always wait for something. Could > you help me please ? Thanks.

Re: Problem with TLSv1.2

2018-05-31 Thread Oleg Kalnichevski
On Wed, 2018-05-30 at 17:58 -0300, Jonathan Barbero wrote: > Hi, > >  I'm using HttpClient v4.5 over a WebSphere 7 trying to connect to a > TLSv1.2 endpoint. > > HttpClient creation code snippet: > > HttpHost proxy = new HttpHost("XX.XX.XX.XX", 8080); > DefaultProxyRoutePlanner

Re: Async httpclient with SOCKS5 proxy

2018-05-18 Thread Oleg Kalnichevski
On Thu, 2018-05-17 at 15:25 +, Khare, Aparna wrote: > Dear Users, > >    Can you please help me with the examples to configure Async > HttpClient with SOCKS5 proxy.. > > I read that the same is not supported for Async httpclient.. > > Thanks, > Aparna Hi Aparna SOCKS5 support is built

Re: Fwd: HttpClient5 : simple example on how to configure timeout after build()

2018-05-18 Thread Oleg Kalnichevski
On Thu, 2018-05-17 at 09:17 -0600, Shawn Heisey wrote: > On 5/17/2018 3:51 AM, Oleg Kalnichevski wrote: > > HttpClientBuilder in HC4 got overloaded with so many connection > > management parameters which could easily get rendered ineffective > > by > > exp

Re: Fwd: HttpClient5 : simple example on how to configure timeout after build()

2018-05-17 Thread Oleg Kalnichevski
} catch (Exception e) { System.out.println(id + " - error: " + e); } } } } --- > bw > a. > > On 16/05/18 22:54, Oleg Kalnichevski wrote: > > On Wed, 2018-05-16 at 15:56 +, Daly, Paul wrote: > > > I canot speak

Re: Fwd: HttpClient5 : simple example on how to configure timeout after build()

2018-05-17 Thread Oleg Kalnichevski
On Wed, 2018-05-16 at 14:11 -0600, Shawn Heisey wrote: > On 5/16/2018 8:42 AM, Shawn Heisey wrote: > >   RequestConfig rc = > > RequestConfig.custom().setConnectTimeout(15000) > >           .setSocketTimeout(12).build(); > >   httpClient = HttpClients.custom().setDefaultRequestConfig(rc) > >

Re: Default IOReactorConfig instance has no socket timeout

2018-05-17 Thread Oleg Kalnichevski
On Wed, 2018-05-16 at 22:40 +0300, Дмитрий Жихарев wrote: > Oleg, > > realistically I would expect the default timeout to be around 5 > seconds, as is the default value in the > PoolingHttpClientConnectionManager ( https://github.com/apache/httpco > mponents- >

Re: Fwd: HttpClient5 : simple example on how to configure timeout after build()

2018-05-16 Thread Oleg Kalnichevski
On Wed, 2018-05-16 at 15:56 +, Daly, Paul wrote: > I canot speak for HttpClient5, but If you are just looking to change > some timeouts on the request, in 4.5.5, I do this (as recommended > from this emai list some time ago!). > > I guess its not too differenent for HC5 (?) > > > - Create a

Re: Fwd: HttpClient5 : simple example on how to configure timeout after build()

2018-05-16 Thread Oleg Kalnichevski
On Wed, 2018-05-16 at 18:01 +0300, / wrote: > Thanks, > > if I understood correctly, the pattern should be: > > 1) Create a RequestConfig (rc) object and keep it. > 2) If you need to modify httpclient, modify the kept RequestConfig > object > 3) After doing said modifications **re-create

Re: Fwd: HttpClient5 : simple example on how to configure timeout after build()

2018-05-16 Thread Oleg Kalnichevski
On Wed, 2018-05-16 at 17:09 +0300, / wrote: > Hi there, > > I am looking for an example on how to configure HttpClient5 after it > has  > been built and how to extract/print some of its configuration. > > Once I have an HttpClient object, how do I go about and change some > of  > its settings,

Re: Shall I write my project in HC5 or HC4?

2018-05-16 Thread Oleg Kalnichevski
On Wed, 2018-05-16 at 17:04 +0300, / wrote: > Hi there, > > My main requirement is that I do not have to change a lot of code > when  > the HC5 becomes stable. > > So, if I am writing software to live for the next 3 years should I > use  > already existing HC4 or try HC5-beta. In fact I already

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