From: Vsevolod Stakhov Date: Wed, 15 Oct 2014 14:29:28 +0000 (+0100) Subject: Reduce default number of parallel requests to 8. X-Git-Tag: 0.7.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24f64a6ed7ac2b9084df79e40f276e5fe669b03e;p=thirdparty%2Frspamd.git Reduce default number of parallel requests to 8. --- diff --git a/doc/rspamc.1 b/doc/rspamc.1 index f9d667d13a..cc63cb756a 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 5cc7dd7701..96d31d63de 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 d2efc6ab4a..ecae8cbcc4 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;