use SOMAXCONN

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2743 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-07 20:29:26 +00:00
parent c6e61f073b
commit 864fecbf09

View File

@@ -70,7 +70,7 @@ init_socket(struct descr *d, int type, int port)
d->s = -1;
return;
}
if(type == SOCK_STREAM && listen(d->s, 5) < 0){
if(type == SOCK_STREAM && listen(d->s, SOMAXCONN) < 0){
warn("listen");
close(d->s);
d->s = -1;