use SOMAXCONN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2743 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -70,7 +70,7 @@ init_socket(struct descr *d, int type, int port)
|
|||||||
d->s = -1;
|
d->s = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(type == SOCK_STREAM && listen(d->s, 5) < 0){
|
if(type == SOCK_STREAM && listen(d->s, SOMAXCONN) < 0){
|
||||||
warn("listen");
|
warn("listen");
|
||||||
close(d->s);
|
close(d->s);
|
||||||
d->s = -1;
|
d->s = -1;
|
||||||
|
Reference in New Issue
Block a user