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: Always setReuseAddress(true) regardless of OS.
Date Tue, 19 Apr 2016 20:34:49 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-1257 [created] 18a0778a6


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/18a0778a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/18a0778a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/18a0778a

Branch: refs/heads/feature/GEODE-1257
Commit: 18a0778a6be080d8b00b80798850f92739c106e3
Parents: 760c6e2
Author: Kirk Lund <klund@apache.org>
Authored: Tue Apr 19 13:33:54 2016 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Tue Apr 19 13:33:54 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/18a0778a/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