From 75688a719dd2ff1c7cfd5b5c352da311aade6d62 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 8 Jul 2009 20:48:00 +0000 Subject: [PATCH] Allow 0 (use default) for backlog value --- .../netty/channel/socket/DefaultServerSocketChannelConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/DefaultServerSocketChannelConfig.java b/src/main/java/org/jboss/netty/channel/socket/DefaultServerSocketChannelConfig.java index f43c6c8123..00a8f7ae8d 100644 --- a/src/main/java/org/jboss/netty/channel/socket/DefaultServerSocketChannelConfig.java +++ b/src/main/java/org/jboss/netty/channel/socket/DefaultServerSocketChannelConfig.java @@ -112,7 +112,7 @@ public class DefaultServerSocketChannelConfig extends DefaultServerChannelConfig } public void setBacklog(int backlog) { - if (backlog < 1) { + if (backlog < 0) { throw new IllegalArgumentException("backlog: " + backlog); } this.backlog = backlog;