[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17473201#comment-17473201
 ] 

Andrei Vasilev commented on HTTPCLIENT-2193:
--------------------------------------------

[~olegk] 

I have created the test project and posted it to GitHub : 
[https://github.com/AndreiVasilev/ApacheHttpClientTest] 

I finally realized something after going through the log that you posted. *Your 
test is not using the HTTP/2 protocol* and that is why we are seeing different 
behavior.

It is evident from this line :
{code:java}
GET https://netflix.com/->HTTP/1.1 200 OK {code}
 

I just investigated further and it looks like this issue only happens when 
using HTTP/2. When using HTTP/1.1 the requests work as expected. I am not sure 
why your test (if you are using the exact sample program I posted) is 
defaulting to HTTP/1.1 while mine is using HTTP2. It seems that ALPN is being 
configured differently on your machine for some reason?

Please try to force the usage of HTTP2 and let me know what happens.

Thanks again for all your help.

> HttpClient Hangs Indefinitely When Using Conscrypt
> --------------------------------------------------
>
>                 Key: HTTPCLIENT-2193
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2193
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async)
>    Affects Versions: 5.1.2, 5.2-alpha1
>            Reporter: Andrei Vasilev
>            Priority: Minor
>         Attachments: Main.java, amazon(FAILURE).log, build.gradle, 
> google(SUCCESS).log, log4j2.xml, netflix(FAILURE).log, yahoo(SUCCESS).log
>
>
> When using an alternative security provider such as Conscrypt, requests will 
> fail the majority of the time, hanging indefinitely at various points during 
> the request / response process.
> All requests appear to successfully CONNECT, but retrieving data is very 
> intermittent. Either the entity is not streamed at all, partially streamed, 
> or fully streamed but the client then hangs forever. I let it run for 3 
> hours, and even then the client didn't shutdown.
> As you can see in the logs I have attached, requests to some major websites 
> will fail at different steps. I have also attached a minimally re-produceable 
> example program. I tested this with OkHttp client and all requests work just 
> fine using Conscrypt. Not sure what's going on.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to