You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/08/31 14:58:00 UTC
[jira] [Commented] (HTTPCLIENT-2292) SOCKS proxy configuration is not working
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760986#comment-17760986 ]
ASF subversion and git services commented on HTTPCLIENT-2292:
-------------------------------------------------------------
Commit 32ecc6aa7d1c83e9498c08d0e8b43bd86cf62728 in httpcomponents-client's branch refs/heads/HTTPCLIENT-2292 from Oleg Kalnichevski
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=32ecc6aa7 ]
HTTPCLIENT-2292: HttpClient ignores socketConfig#getSocksProxyAddress
> SOCKS proxy configuration is not working
> ----------------------------------------
>
> Key: HTTPCLIENT-2292
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2292
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 5.2.1
> Reporter: Václav Kužel
> Priority: Minor
>
> h3. 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**
> h3. 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org