-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Client: Disable Name Resolution in Proxy Mode #522
Comments
Just to add my 2c: I use name resolution in proxy mode, specifically with Tor (DNSPort, AutomapHostsOnResolve, HTTPTunnelPort). However, this is with an explicit :name-resolver, and using :tunnel? true. |
Good point. From what I can see, |
@alexanderkiel I'm trying to reproduce the situation and... I don't see the host being resolved, both with tunnel and non-tunnel options (see attached Wireshark screenshots). No configuration to |
Oh... okay, it seems I finally got the problem. We do send DNS query even thought we don't use the result. So, better not to waste time by default. But there's another question, if proxy host is given as domain name rather than IP, it itself should be resolve before establishing the connection. I'm not sure if setting DNS resolver to |
When going though a proxy, local name resolution isn't necessary, because the full URL is send to the proxy.
If I set only
:proxy-options
in:connection-options
while creating aconnection-pool
, Netty is still resolving the remote address without any need.Setting, in addition to
:proxy-options
,:name-resolver
to:noop
, solves the problem.It might be a good idea to do this by default. But I may also overlook something here.
The text was updated successfully, but these errors were encountered: