[Swift-commit] cog r3524
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Tue Nov 27 12:40:17 CST 2012
------------------------------------------------------------------------
r3524 | davidkelly999 | 2012-11-27 12:36:23 -0600 (Tue, 27 Nov 2012) | 2 lines
Fix for when coaster-service -localport is used
------------------------------------------------------------------------
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 3523)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/LocalTCPService.java (working copy)
@@ -113,9 +113,9 @@
/* When GLOBUS_TCP_PORT_RANGE is defined, find an acceptable port in that range */
String globusTCPPortRange = System.getenv("GLOBUS_TCP_PORT_RANGE");
- String rangeValues[] = {"0", "0"};
+ String rangeValues[] = {String.valueOf(port), String.valueOf(port)};
- if(globusTCPPortRange != null) {
+ if(globusTCPPortRange != null && port == 0) {
rangeValues = globusTCPPortRange.split(",");
}
More information about the Swift-commit
mailing list