/** * 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()); }
while (adrs.hasMoreElements()) { final InetAddress adr = adrs.nextElement(); if (getLocalIpFilter().use(nif, adr)) { listAdr.add(adr);
public static int getDefaultTcpBacklog() { return isWindows() ? DEFAULT_TCP_BACKLOG_WINDOWS : DEFAULT_TCP_BACKLOG_LINUX; }
connector.setAcceptQueueSize(NetUtil.getTcpBacklog());
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()); }
public static int getDefaultTcpBacklog() { return isWindows() ? DEFAULT_TCP_BACKLOG_WINDOWS : DEFAULT_TCP_BACKLOG_LINUX; }
while (adrs.hasMoreElements()) { final InetAddress adr = adrs.nextElement(); if (getLocalIpFilter().use(nif, adr)) { listAdr.add(adr);