aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-15 15:29:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-15 15:29:28 +0100
commit24f64a6ed7ac2b9084df79e40f276e5fe669b03e (patch)
treeb06848511717407ce9d14bb71d5f3ae525a16fec
parent80b26cf787e14e1cd23dcd9957ebc5f3d35d4315 (diff)
downloadrspamd-24f64a6ed7ac2b9084df79e40f276e5fe669b03e.tar.gz
rspamd-24f64a6ed7ac2b9084df79e40f276e5fe669b03e.zip
Reduce default number of parallel requests to 8.
-rw-r--r--doc/rspamc.12
-rw-r--r--doc/rspamc.1.md2
-rw-r--r--src/client/rspamc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/rspamc.1 b/doc/rspamc.1
index f9d667d13..cc63cb756 100644
--- a/doc/rspamc.1
+++ b/doc/rspamc.1
@@ -163,7 +163,7 @@ Output HTTP headers from a reply
.TP
.B \-n \f[I]parallel_count\f[],
\-\-max\-requests=\f[I]parallel_count\f[]
-Maximum number of requests to rspamd executed in parallel (1 by default)
+Maximum number of requests to rspamd executed in parallel (8 by default)
.RS
.RE
.TP
diff --git a/doc/rspamc.1.md b/doc/rspamc.1.md
index 5cc7dd770..96d31d63d 100644
--- a/doc/rspamc.1.md
+++ b/doc/rspamc.1.md
@@ -100,7 +100,7 @@ requires input.
: Output HTTP headers from a reply
-n *parallel_count*, \--max-requests=*parallel_count*
-: Maximum number of requests to rspamd executed in parallel (1 by default)
+: Maximum number of requests to rspamd executed in parallel (8 by default)
\--commands
: List available commands
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index d2efc6ab4..ecae8cbcc 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -47,7 +47,7 @@ static gchar *classifier = "bayes";
static gchar *local_addr = NULL;
static gint weight = 0;
static gint flag = 0;
-static gint max_requests = 1024;
+static gint max_requests = 8;
static gdouble timeout = 5.0;
static gboolean pass_all;
static gboolean tty = FALSE;