[Swift-commit] cog r3422

swift at ci.uchicago.edu swift at ci.uchicago.edu
Wed Jun 13 00:05:04 CDT 2012


------------------------------------------------------------------------
r3422 | davidkelly999 | 2012-06-13 00:02:12 -0500 (Wed, 13 Jun 2012) | 2 lines

More carefully check if a port range is specified

------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/LocalTCPService.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/LocalTCPService.java	(revision 3421)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/LocalTCPService.java	(working copy)
@@ -103,7 +103,9 @@
             channel.configureBlocking(true);
             if(port == 0) {
               PortRange portRange = PortRange.getTcpInstance();
-              port = portRange.getFreePort(port);
+              if(portRange != null && portRange.isEnabled()) {
+                  port = portRange.getFreePort(port);
+              }
             }
             channel.socket().bind(new InetSocketAddress(port));
             



More information about the Swift-commit mailing list