/** * 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 int getTcpBacklog() { return getTcpBacklog(getDefaultTcpBacklog()); }
connector.setAcceptQueueSize(NetUtil.getTcpBacklog());
/** * 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 int getTcpBacklog() { return getTcpBacklog(getDefaultTcpBacklog()); }
connector.setAcceptQueueSize(NetUtil.getTcpBacklog());