You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ar...@apache.org on 2017/03/01 20:59:34 UTC

[1/2] hadoop git commit: HDFS-11479. Socket re-use address option should be used in SimpleUdpServer. Contributed by Mukul Kumar Singh.

Repository: hadoop
Updated Branches:
  refs/heads/branch-2 a545ee4d7 -> ff08f54f4
  refs/heads/trunk 82ef9acca -> 899d5c4d4


HDFS-11479. Socket re-use address option should be used in SimpleUdpServer. Contributed by Mukul Kumar Singh.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/899d5c4d
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/899d5c4d
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/899d5c4d

Branch: refs/heads/trunk
Commit: 899d5c4d49f00d90ddc3632efb2df92841867192
Parents: 82ef9ac
Author: Arpit Agarwal <ar...@apache.org>
Authored: Wed Mar 1 12:59:02 2017 -0800
Committer: Arpit Agarwal <ar...@apache.org>
Committed: Wed Mar 1 12:59:02 2017 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/899d5c4d/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java b/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
index c9cb2b3..d691aba 100644
--- a/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
+++ b/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
@@ -63,6 +63,7 @@ public class SimpleUdpServer {
     server.setOption("broadcast", "false");
     server.setOption("sendBufferSize", SEND_BUFFER_SIZE);
     server.setOption("receiveBufferSize", RECEIVE_BUFFER_SIZE);
+    server.setOption("reuseAddress", true);
 
     // Listen to the UDP port
     ch = server.bind(new InetSocketAddress(port));


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


[2/2] hadoop git commit: HDFS-11479. Socket re-use address option should be used in SimpleUdpServer. Contributed by Mukul Kumar Singh.

Posted by ar...@apache.org.
HDFS-11479. Socket re-use address option should be used in SimpleUdpServer. Contributed by Mukul Kumar Singh.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ff08f54f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ff08f54f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ff08f54f

Branch: refs/heads/branch-2
Commit: ff08f54f41bbcc207efbb7a243b50ececdf6dec2
Parents: a545ee4
Author: Arpit Agarwal <ar...@apache.org>
Authored: Wed Mar 1 12:59:02 2017 -0800
Committer: Arpit Agarwal <ar...@apache.org>
Committed: Wed Mar 1 12:59:09 2017 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ff08f54f/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java b/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
index c9cb2b3..d691aba 100644
--- a/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
+++ b/hadoop-common-project/hadoop-nfs/src/main/java/org/apache/hadoop/oncrpc/SimpleUdpServer.java
@@ -63,6 +63,7 @@ public class SimpleUdpServer {
     server.setOption("broadcast", "false");
     server.setOption("sendBufferSize", SEND_BUFFER_SIZE);
     server.setOption("receiveBufferSize", RECEIVE_BUFFER_SIZE);
+    server.setOption("reuseAddress", true);
 
     // Listen to the UDP port
     ch = server.bind(new InetSocketAddress(port));


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org