From f4e9238aafed18ce463fcaf9abf99fb078edcbbf Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 31 Oct 2016 09:27:12 +0100 Subject: [PATCH] lowering the default max connection value to 64 Change-Id: Ib0f317d6ed0480686d2dbf4ddcfd4a97315959a7 Signed-off-by: SJ --- etc/example.conf | 2 +- src/cfg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/example.conf b/etc/example.conf index 655baafb..6c1b102a 100644 --- a/etc/example.conf +++ b/etc/example.conf @@ -41,7 +41,7 @@ number_of_worker_processes=2 ; max. number of parallel connections piler-smtp can handle. ; Important! If you want to change this value, then you must first ; stop piler-smtp, change the value, then start piler-smtp. -max_connections=256 +max_connections=64 ; number of processed emails per each piler process max_requests_per_child=1000 diff --git a/src/cfg.c b/src/cfg.c index 634b515e..53af84ad 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -80,7 +80,7 @@ struct _parse_rule config_parse_rules[] = { "listen_addr", "string", (void*) string_parser, offsetof(struct __config, listen_addr), "0.0.0.0", MAXVAL-1}, { "listen_port", "integer", (void*) int_parser, offsetof(struct __config, listen_port), "25", sizeof(int)}, { "locale", "string", (void*) string_parser, offsetof(struct __config, locale), "", MAXVAL-1}, - { "max_connections", "integer", (void*) int_parser, offsetof(struct __config, max_connections), "256", sizeof(int)}, + { "max_connections", "integer", (void*) int_parser, offsetof(struct __config, max_connections), "64", sizeof(int)}, { "max_requests_per_child", "integer", (void*) int_parser, offsetof(struct __config, max_requests_per_child), "1000", sizeof(int)}, { "memcached_servers", "string", (void*) string_parser, offsetof(struct __config, memcached_servers), "127.0.0.1", MAXVAL-1}, { "memcached_to_db_interval", "integer", (void*) int_parser, offsetof(struct __config, memcached_to_db_interval), "900", sizeof(int)},