[hornetq-commits] JBoss hornetq SVN: r10033 - trunk/src/main/org/hornetq/core/remoting/impl/netty.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Dec 10 11:43:24 EST 2010


Author: clebert.suconic at jboss.com
Date: 2010-12-10 11:43:24 -0500 (Fri, 10 Dec 2010)
New Revision: 10033

Modified:
   trunk/src/main/org/hornetq/core/remoting/impl/netty/NettyConnector.java
Log:
QA was doing some tests with IPV6, and this would cope better with IPV6 URL scheme as new URI.toString() should do the proper URL spec on IPV6

Modified: trunk/src/main/org/hornetq/core/remoting/impl/netty/NettyConnector.java
===================================================================
--- trunk/src/main/org/hornetq/core/remoting/impl/netty/NettyConnector.java	2010-12-10 15:21:37 UTC (rev 10032)
+++ trunk/src/main/org/hornetq/core/remoting/impl/netty/NettyConnector.java	2010-12-10 16:43:24 UTC (rev 10033)
@@ -517,7 +517,7 @@
 
       private HttpIdleTimer task;
 
-      private final String url = "http://" + host + ":" + port + servletPath;
+      private final String url;
 
       private final Future handShakeFuture = new Future();
 
@@ -530,6 +530,11 @@
       private String cookie;
 
       private final CookieEncoder cookieEncoder = new CookieEncoder(false);
+      
+      public HttpHandler() throws Exception
+      {
+         url = new URI("http", null, host, port, servletPath, null, null).toString();
+      }
 
       @Override
       public void channelConnected(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception



More information about the hornetq-commits mailing list