[ https://issues.apache.org/jira/browse/CXF-7671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned CXF-7671: --------------------------------- Assignee: Freeman Fang > should avoid reverse dns resolution in AsyncHTTPConduit for the proxy host > address > ---------------------------------------------------------------------------------- > > Key: CXF-7671 > URL: https://issues.apache.org/jira/browse/CXF-7671 > Project: CXF > Issue Type: Improvement > Reporter: Freeman Fang > Assignee: Freeman Fang > Priority: Major > > currently it use > {code} > HttpHost proxy = new HttpHost(isa.getHostName(), isa.getPort()); > {code} > and InetSocketAddress.getHostName will trigger dns reserve resolution when > the proxy address is literal ip > {code} > /** > * Gets the {@code hostname}. > * Note: This method may trigger a name service reverse lookup if the > * address was created with a literal IP address. > * > * @return the hostname part of the address. > */ > {code} > This dns reserve resolution is time-consuming and should be avoid, as the > proxy is specified by users, they can specify as hostname or literal ip per > their requirement. > We should use InetSocketAddress.getHostString instead, this will return what > users has specified as is > {code} > /** > * Returns the hostname, or the String form of the address if it > * doesn't have a hostname (it was created using a literal). > * This has the benefit of <b>not</b> attempting a reverse lookup. > * > * @return the hostname, or String representation of the address. > * @since 1.7 > */ > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)