You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Alin Vasile (Reopened) (JIRA)" <ji...@apache.org> on 2011/10/10 22:06:29 UTC
[jira] [Reopened] (HTTPCLIENT-1123) Implement a way to override or
resolve DNS entries defined in the OS
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alin Vasile reopened HTTPCLIENT-1123:
-------------------------------------
PoolingClientConnectionManager constructor doesn't pick the provided dns resolver, but instead always goes with SystemDefaultDnsResolver:
public PoolingClientConnectionManager(final SchemeRegistry schemeRegistry,
final long timeToLive, final TimeUnit tunit,
final DnsResolver dnsResolver) {
super();
if (schemeRegistry == null) {
throw new IllegalArgumentException("Scheme registry may not be null");
}
this.schemeRegistry = schemeRegistry;
this.dnsResolver = new SystemDefaultDnsResolver();
this.operator = createConnectionOperator(schemeRegistry);
this.pool = new HttpConnPool(this.log, 2, 20, timeToLive, tunit);
}
> Implement a way to override or resolve DNS entries defined in the OS
> --------------------------------------------------------------------
>
> Key: HTTPCLIENT-1123
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1123
> Project: HttpComponents HttpClient
> Issue Type: New Feature
> Components: HttpClient
> Reporter: Alin Vasile
> Priority: Minor
> Fix For: 4.2 Alpha1
>
> Attachments: dns_overrider_poc.patch, dns_overrider_poc.patch, dns_resolver.patch, dns_resolver.patch, dns_resolver.patch, dns_system_resolver.patch
>
>
> When working with HttpClient in restrictive environments, where the user doesn't have the permissisions to edit the local /etc/hosts file or the DNS configuration, can be eased with an DNS Overrider capability.
> This can be useful with JMeter which can follow redirects automatically and resolve some of the redirected hosts against its configuration. Another example is a custom forward proxy, written in Java and based on httpclient, which can be deployed is such a restricted environment that would ease the development of various web solutions for some developers.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org