Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3591

No SocketConfig is set for Connection Managers in ClientHttpEngineBuilder43 which can cause indefinetly hangs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.14.Final, 7.0.0.Final
    • None
    • None
    • None

      It seems that RestEasy does not set a SocketConfig when creating a connection manager for the Apache HTTP Client ([1] and [2]).

      The timeouts are only set via RequestConfig:


       

      Without a SocketConfig with a Socket timeout the TLS handshake can hang indefinetly:

       

      [1] https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.html#setDefaultSocketConfig(org.apache.http.config.SocketConfig)
      [2] https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/impl/conn/BasicHttpClientConnectionManager.html#setSocketConfig(org.apache.http.config.SocketConfig)

        1. image-2025-03-17-13-47-15-175.png
          84 kB
          Thomas Beckers
        2. image-2025-03-17-13-47-43-196.png
          119 kB
          Thomas Beckers

              jperkins-rhn James Perkins
              beth-soptim Thomas Beckers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: