From d150ee7886c8035f9be6c8a0b642a4299253aac2 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Mon, 18 Aug 2014 05:57:35 +0200 Subject: [PATCH] Document the correct default value of SOMAXCONN Motivation: Recently we changed the default value of SOMAXCONN that is used when we can not determine it by reading /proc/sys/net/core/somaxconn. While doing this we missed to update the javadocs to reflect the new default value that is used. Modifications: List correct default value in the javadocs of SOMAXCONN. Result: Correct javadocs. --- common/src/main/java/io/netty/util/NetUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/io/netty/util/NetUtil.java b/common/src/main/java/io/netty/util/NetUtil.java index 26beb6874a..307c5a3196 100644 --- a/common/src/main/java/io/netty/util/NetUtil.java +++ b/common/src/main/java/io/netty/util/NetUtil.java @@ -63,8 +63,8 @@ public final class NetUtil { public static final NetworkInterface LOOPBACK_IF; /** - * The SOMAXCONN value of the current machine. If failed to get the value, 3072 is used as a - * default value. + * The SOMAXCONN value of the current machine. If failed to get the value, {@code 200} is used as a + * default value for Windows or {@code 128} for others. */ public static final int SOMAXCONN;