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 ae...@apache.org on 2017/03/03 22:05:24 UTC
[32/50] [abbrv] hadoop git commit: HDFS-11479. Socket re-use address
option should be used in SimpleUdpServer. Contributed by Mukul Kumar Singh.
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/HDFS-7240
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