diff --git a/common/src/main/java/io/netty/util/NetUtil.java b/common/src/main/java/io/netty/util/NetUtil.java index be42814759..2afe52e9f3 100644 --- a/common/src/main/java/io/netty/util/NetUtil.java +++ b/common/src/main/java/io/netty/util/NetUtil.java @@ -185,7 +185,7 @@ public final class NetUtil { if (file.exists()) { BufferedReader in = null; try { - in = new BufferedReader(new FileReader("/proc/sys/net/core/somaxconn")); + in = new BufferedReader(new FileReader(file)); somaxconn = Integer.parseInt(in.readLine()); logger.debug("/proc/sys/net/core/somaxconn: {}", somaxconn); } catch (Exception e) {