aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2026-06-16 16:15:25 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2026-06-16 16:15:25 +0000
commit62e7ac83ae14fcc1847d607e98284bd4a98e7127 (patch)
tree31bcb9080fa2f87f36d99cfa99b96f519044098b
parent2e6615b26bb51ceadc99121f16856aad9345a3cf (diff)
Revert "rpc.tlsservd.c: Pin max threads at 1 for now"
This reverts commit 7a289fe3cd5c6de7ddbe394b7700b20b0bafdb3e. Hopefully, commit fc7993cf2d6d has fixed the underlying problem reported by PR#289734, so I am reverting this temporary work-around. I will delay MFC'ng this for a while, to see if the problem occurs again. MFC after: 3 months
-rw-r--r--usr.sbin/rpc.tlsservd/rpc.tlsservd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
index fb0501b2db4c..f07385a2baa7 100644
--- a/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
+++ b/usr.sbin/rpc.tlsservd/rpc.tlsservd.c
@@ -168,12 +168,7 @@ main(int argc, char **argv)
rpctls_verbose = false;
ncpu = (u_int)sysconf(_SC_NPROCESSORS_ONLN);
-#ifdef notnow
rpctls_maxthreads = ncpu > 1 ? ncpu / 2 : 1;
-#else
- /* XXX For now, until fixed properly!! */
- rpctls_maxthreads = 1;
-#endif
while ((ch = getopt_long(argc, argv, "2C:D:dhl:N:n:mp:r:uvWw", longopts,
NULL)) != -1) {
@@ -204,8 +199,6 @@ main(int argc, char **argv)
if (rpctls_maxthreads < 1 || rpctls_maxthreads > ncpu)
errx(1, "maximum threads must be between 1 and "
"number of CPUs (%d)", ncpu);
- /* XXX For now, until fixed properly!! */
- rpctls_maxthreads = 1;
break;
case 'n':
hostname[0] = '@';