Allow 0 (use default) for backlog value
This commit is contained in:
parent
cae3010d6e
commit
75688a719d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user