summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nfsd
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-04-07 10:25:27 +0000
committermav <mav@FreeBSD.org>2015-04-07 10:25:27 +0000
commit979d5901547bd4ac25c4446ef4032a9b70adc999 (patch)
treee64bf9aae3ce4813e7eac2c0a8f68d3323d6e51c /usr.sbin/nfsd
parent752475fefb423b723eb2677d541d16f96d3d6e01 (diff)
downloadFreeBSD-src-979d5901547bd4ac25c4446ef4032a9b70adc999.zip
FreeBSD-src-979d5901547bd4ac25c4446ef4032a9b70adc999.tar.gz
Remove hard limits on number of accepting NFS connections.
Limits of 5 connections set long ago creates problems for SPEC benchmark. Make the NFS follow system-wide maximum. MFC after: 1 week
Diffstat (limited to 'usr.sbin/nfsd')
-rw-r--r--usr.sbin/nfsd/nfsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nfsd/nfsd.c b/usr.sbin/nfsd/nfsd.c
index b114ba6..a0cb5a3 100644
--- a/usr.sbin/nfsd/nfsd.c
+++ b/usr.sbin/nfsd/nfsd.c
@@ -626,7 +626,7 @@ main(int argc, char **argv)
bindhost[i]);
nfsd_exit(1);
}
- if (listen(tcpsock, 5) < 0) {
+ if (listen(tcpsock, -1) < 0) {
syslog(LOG_ERR, "listen failed");
nfsd_exit(1);
}
@@ -701,7 +701,7 @@ main(int argc, char **argv)
bindhost[i]);
nfsd_exit(1);
}
- if (listen(tcp6sock, 5) < 0) {
+ if (listen(tcp6sock, -1) < 0) {
syslog(LOG_ERR, "listen failed");
nfsd_exit(1);
}
OpenPOWER on IntegriCloud