From 8c34d05516f0f688a9455a4d6cd9482325308acb Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 31 Jan 2012 14:49:00 +1100 Subject: [PATCH] 365828: avoid DNS lookup for local address --- .../src/main/java/org/eclipse/jetty/client/HttpExchange.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java index 27b28aa0cc8..4332223f035 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java @@ -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)