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;