geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject incubator-geode git commit: GEODE-1257: always setReuseAddress(true) regardless of OS
Date Wed, 20 Apr 2016 16:07:15 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 8cdeb55e4 -> 1fa157156


GEODE-1257: always setReuseAddress(true) regardless of OS


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/1fa15715
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/1fa15715
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/1fa15715

Branch: refs/heads/develop
Commit: 1fa1571565510317313c89127090068badaed1fd
Parents: 8cdeb55
Author: Kirk Lund <klund@apache.org>
Authored: Tue Apr 19 13:33:54 2016 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Wed Apr 20 09:06:53 2016 -0700

----------------------------------------------------------------------
 .../main/java/com/gemstone/gemfire/internal/AvailablePort.java  | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/1fa15715/geode-core/src/main/java/com/gemstone/gemfire/internal/AvailablePort.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/AvailablePort.java b/geode-core/src/main/java/com/gemstone/gemfire/internal/AvailablePort.java
index 9417d7a..c222490 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/AvailablePort.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/AvailablePort.java
@@ -195,10 +195,7 @@ public class AvailablePort {
     try {
       //(new Exception("Opening server socket on " + port)).printStackTrace();
       server = new ServerSocket();
-      String osName = System.getProperty("os.name");
-      if(osName != null && !osName.startsWith("Windows")) {
-        server.setReuseAddress(true);  
-      }      
+      server.setReuseAddress(true);
       if (addr != null) {
         server.bind(new InetSocketAddress(addr, port));
       }


Mime
View raw message