From 24f64a6ed7ac2b9084df79e40f276e5fe669b03e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 15 Oct 2014 15:29:28 +0100 Subject: [PATCH] Reduce default number of parallel requests to 8. --- doc/rspamc.1 | 2 +- doc/rspamc.1.md | 2 +- src/client/rspamc.c | 2 +- 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; -- 2.39.5