Allow 0 (use default) for backlog value

This commit is contained in:
Trustin Lee 2009-07-08 20:48:00 +00:00
parent cae3010d6e
commit 75688a719d

View File

@ -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;