Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2193

HttpClient Hangs Indefinitely When Using Conscrypt

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 5.1.2, 5.2-alpha1
    • 5.2-beta1
    • HttpClient (async)
    • None

    Description

      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.

      Attachments

        1. netflix(FAILURE).log
          9 kB
          Andrei Vasilev
        2. amazon(FAILURE).log
          375 kB
          Andrei Vasilev
        3. google(SUCCESS).log
          200 kB
          Andrei Vasilev
        4. yahoo(SUCCESS).log
          2.19 MB
          Andrei Vasilev
        5. build.gradle
          0.6 kB
          Andrei Vasilev
        6. Main.java
          3 kB
          Andrei Vasilev
        7. log4j2.xml
          0.7 kB
          Andrei Vasilev

        Activity

          People

            Unassigned Unassigned
            avasilev Andrei Vasilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: