Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.2.2
-
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.