summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-04-14 09:58:10 +0000
committermav <mav@FreeBSD.org>2015-04-14 09:58:10 +0000
commit25a103ace6367d0a8f62111662452470439af6fc (patch)
tree7f760885977f79a656d3345ff565c0aa089c7d1f /usr.sbin
parentedfb89679048b8f6629f8a931375c42d835f2823 (diff)
downloadFreeBSD-src-25a103ace6367d0a8f62111662452470439af6fc.zip
FreeBSD-src-25a103ace6367d0a8f62111662452470439af6fc.tar.gz
MFC r281199: 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.
Diffstat (limited to 'usr.sbin')
-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