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

SOCKS proxy configuration is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.2.2
    • 5.2.3, 5.3
    • HttpClient (classic)
    • None

    Description

      Current behaviour

      A SOCKS proxy can be configured via the PoolingHttpClientConnectionManagerBuilder. setDefaultSocketConfig() method which accepts SocketConfig.setSocksProxyAddress(socksaddr) configuration.

      *The socksProxyAddress configuration is ignored in class HttpClient*

      Expected behaviour

      • Proxy aware socket instances are instantiated by the Socket(Proxy proxy) constructor.
      • Sockets are created via the ConnectionSocketFactory.createSocket() method.
      • The DefaultHttpClientConnectionOperator.connect() method, which holds aforementioned configuration, calls the socket factory.

      So, we need to pass the proxy address from the operator into the socket factory method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vkuzel Václav Kužel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h