From 2e5ddbaef556e163a430e37b26c7eccc92c60325 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 31 Oct 2016 09:39:17 +0100 Subject: [PATCH] added some explanation to example.conf Change-Id: I859b48c70008a4961c87cd23c16ce9573bf8a18a Signed-off-by: SJ --- etc/example.conf | 1 + src/piler-smtp.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/etc/example.conf b/etc/example.conf index 6c1b102a..76b23cdc 100644 --- a/etc/example.conf +++ b/etc/example.conf @@ -41,6 +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. +; I don't suggest to go under 10 or above 1000. max_connections=64 ; number of processed emails per each piler process diff --git a/src/piler-smtp.c b/src/piler-smtp.c index 4e38127e..5bad0b87 100644 --- a/src/piler-smtp.c +++ b/src/piler-smtp.c @@ -385,10 +385,6 @@ int main(int argc, char **argv){ initialise_configuration(); - // The max_connections variable mustn't be affected by a reload! - if(cfg.max_connections < 10) cfg.max_connections = 10; - if(cfg.max_connections > 10000) cfg.max_connections = 10000; - listenerfd = create_listener_socket(cfg.listen_addr, cfg.listen_port); if(listenerfd == -1){ syslog(LOG_PRIORITY, "create_listener_socket() error");