From ced5b6c026333c0018e3f79db70a8696e2c004ac Mon Sep 17 00:00:00 2001 From: hrbrmstr Date: Wed, 26 Sep 2018 13:15:25 -0400 Subject: [PATCH] changed default thread count in zdns_query --- R/zdns-bulk-query.R | 5 ++++- man/zdns_query.Rd | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/R/zdns-bulk-query.R b/R/zdns-bulk-query.R index 2b3fbe9..517d87d 100644 --- a/R/zdns-bulk-query.R +++ b/R/zdns-bulk-query.R @@ -20,6 +20,8 @@ #' recommended that you refresh this list periodicaly (perhaps daily). #' @param num_retries how many times should `zdns` retry query if timeout or #' temporary failure? Defaults to `3`. +#' @param num_threads number of lightweight go threads. Note that the default `500` is +#' smaller than the built-in default of `1000`. #' @param log if `TRUE` the JSON error log file will be automatically generated and #' the location printed to the console. If a length 1 character vector, this #' path + file will be used to save the JSON error log. If `FALSE` no error @@ -70,7 +72,7 @@ #' knitr::kable(xdf) #' } zdns_query <- function(entities, input_file = NULL, query_type = "A", output_file, - num_nameservers = 3000L, num_retries = 3, + num_nameservers = 3000L, num_retries = 3, num_threads = 500, log = TRUE, verbose = 3) { # make sure the output file dir exists @@ -130,6 +132,7 @@ zdns_query <- function(entities, input_file = NULL, query_type = "A", output_fil "-conf-file", ns_file, "-output-file", output_file, "-retries", num_retries, + "-threads", num_threads, "-verbosity", verbose ) diff --git a/man/zdns_query.Rd b/man/zdns_query.Rd index 5510752..cc615c3 100644 --- a/man/zdns_query.Rd +++ b/man/zdns_query.Rd @@ -5,7 +5,8 @@ \title{Bulk query using zdns} \usage{ zdns_query(entities, input_file = NULL, query_type = "A", output_file, - num_nameservers = 3000L, num_retries = 3, log = TRUE, verbose = 3) + num_nameservers = 3000L, num_retries = 3, num_threads = 500, + log = TRUE, verbose = 3) } \arguments{ \item{entities}{a character vector of entities to resolve} @@ -29,6 +30,9 @@ recommended that you refresh this list periodicaly (perhaps daily).} \item{num_retries}{how many times should \code{zdns} retry query if timeout or temporary failure? Defaults to \code{3}.} +\item{num_threads}{number of lightweight go threads. Note that the default \code{500} is +smaller than the built-in default of \code{1000}.} + \item{log}{if \code{TRUE} the JSON error log file will be automatically generated and the location printed to the console. If a length 1 character vector, this path + file will be used to save the JSON error log. If \code{FALSE} no error