From 9f51f615a51b895c9b8647fd9b0807d095454729 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 9 Mar 2008 17:31:48 +0000 Subject: [PATCH] Fix bug 44558. Include address in bind exception message. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@635304 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/JIoEndpoint.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/JIoEndpoint.java b/java/org/apache/tomcat/util/net/JIoEndpoint.java index eac333edb..afc0f56ca 100644 --- a/java/org/apache/tomcat/util/net/JIoEndpoint.java +++ b/java/org/apache/tomcat/util/net/JIoEndpoint.java @@ -498,7 +498,11 @@ public class JIoEndpoint { serverSocket = serverSocketFactory.createSocket(port, backlog, address); } } catch (BindException be) { - throw new BindException(be.getMessage() + ":" + port); + if (address == null) + throw new BindException(be.getMessage() + ":" + port); + else + throw new BindException(be.getMessage() + " " + + address.toString() + ":" + port); } } //if( serverTimeout >= 0 ) -- 2.11.0