]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Spello's, better names for settings
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 25 Aug 2021 10:13:40 +0000 (12:13 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 24 Sep 2021 07:59:43 +0000 (09:59 +0200)
pdns/pdns_recursor.cc
pdns/recursordist/docs/settings.rst

index 10b3219b3e51f88ddaac1517d9d44b06c6285618..5fae14c11f567ee18044110008ef12c2619ce32b 100644 (file)
@@ -5065,11 +5065,11 @@ static int serviceMain(int argc, char*argv[])
     TCPConnection::s_maxInFlight = maxInFlight;
   }
 
-  int64_t millis = ::arg().asNum("tcpout-maxidle-ms");
+  int64_t millis = ::arg().asNum("tcp-out-max-idle-ms");
   TCPOutConnectionManager::maxIdleTime = timeval{millis / 1000, (millis % 1000) * 1000 };
-  TCPOutConnectionManager::maxIdlePerAuth = ::arg().asNum("tcpout-maxidle-per-auth");
-  TCPOutConnectionManager::maxQueries = ::arg().asNum("tcpout-max-queries");
-  TCPOutConnectionManager::maxIdlePerThread = ::arg().asNum("tcpout-maxidle-per-thread");
+  TCPOutConnectionManager::maxIdlePerAuth = ::arg().asNum("tcp-out-max-idle-per-auth");
+  TCPOutConnectionManager::maxQueries = ::arg().asNum("tcp-out-max-queries");
+  TCPOutConnectionManager::maxIdlePerThread = ::arg().asNum("tcp-out-max-idle-per-thread");
 
   g_gettagNeedsEDNSOptions = ::arg().mustDo("gettag-needs-edns-options");
 
@@ -5942,10 +5942,10 @@ int main(int argc, char **argv)
     ::arg().setSwitch("dot-to-port-853", "Force DoT connection to target port 853 if DoT compiled in")="yes";
     ::arg().set("dot-to-auth-names", "Use DoT to authoritative servers with these names or suffixes")="";
 
-    ::arg().set("tcpout-maxidle-ms", "Time TCP/DoT connections are left idle in milliseconds or 0 if no limit") = "10000";
-    ::arg().set("tcpout-maxidle-per-auth", "Maximum number of idle TCP/DoT connections to a specific IP per thread, 0 means do not keep idle connections open") = "10";
-    ::arg().set("tcpout-max-queries", "Maximum total number of queries per TCP/DoT connection, 0 means no limit") = "0";
-    ::arg().set("tcpout-maxidle-per-thread", "Maximum number of idle TCP/DoT connections per thread") = "100";
+    ::arg().set("tcp-out-max-idle-ms", "Time TCP/DoT connections are left idle in milliseconds or 0 if no limit") = "10000";
+    ::arg().set("tcp-out-max-idle-per-auth", "Maximum number of idle TCP/DoT connections to a specific IP per thread, 0 means do not keep idle connections open") = "10";
+    ::arg().set("tcp-out-max-queries", "Maximum total number of queries per TCP/DoT connection, 0 means no limit") = "0";
+    ::arg().set("tcp-out-max-idle-per-thread", "Maximum number of idle TCP/DoT connections per thread") = "100";
 
     ::arg().setCmd("help","Provide a helpful message");
     ::arg().setCmd("version","Print version string");
index 530f44e2be7d78766e9152593f23c397da616bc2..edbc9e794ea76fefbfa61e449729d9da1b37a260 100644 (file)
@@ -1887,16 +1887,16 @@ The numerical value supplied is used as the queue size, 0 meaning disabled. See
 
 Enable TCP Fast Open Connect support, if available, on the outgoing connections to authoritative servers. See :ref:`tcp-fast-open-support`.
 
-``tcpout-maxidle-ms``
+``tcp-out-max-idle-ms``
 ---------------------
 .. versionadded:: 4.6.0
 
 -  Integer
 -  Default : 10000
 
-Time outgoing TCP/DoT connections are left idle in milliseconds or 0 if no limit. After having been idle for this time, the connection is elegible for closing.
+Time outgoing TCP/DoT connections are left idle in milliseconds or 0 if no limit. After having been idle for this time, the connection is eligible for closing.
 
-``tcpout-maxidle-per-auth``
+``tcp-out-max-idle-per-auth``
 ---------------------------
 .. versionadded:: 4.6.0
 
@@ -1905,17 +1905,17 @@ Time outgoing TCP/DoT connections are left idle in milliseconds or 0 if no limit
 
 Maximum number of idle outgoing TCP/DoT connections to a specific IP per thread, 0 means do not keep idle connections open.
 
-``tcpout-max-queries``
+``tcp-out-max-queries``
 ----------------------
 -  Integer
 -  Default : 0
 
-Maximum total number of queries per outgoing TCP/DoT connection, 0 means no limit. After this number of queries, the concection is
+Maximum total number of queries per outgoing TCP/DoT connection, 0 means no limit. After this number of queries, the connection is
 closed and a new one will be created if needed.
 
 .. versionadded:: 4.6.0
 
-``tcpout-maxidle-per-thread``
+``tcp-out-max-idle-per-thread``
 -----------------------------
 .. versionadded:: 4.6.0