365828: avoid DNS lookup for local address

This commit is contained in:
Greg Wilkins 2012-01-31 14:49:00 +11:00
parent cafdf291ee
commit 8c34d05516
1 changed files with 2 additions and 2 deletions

View File

@ -810,8 +810,8 @@ public class HttpExchange
void associate(AbstractHttpConnection connection)
{
if (connection.getEndPoint().getLocalHost() != null)
_localAddress = new Address(connection.getEndPoint().getLocalHost(),connection.getEndPoint().getLocalPort());
if (connection.getEndPoint().getLocalAddr() != null)
_localAddress = new Address(connection.getEndPoint().getLocalAddr(),connection.getEndPoint().getLocalPort());
_connection = connection;
if (getStatus() == STATUS_CANCELLING)