diff --git a/etc/example.conf b/etc/example.conf index 6c1b102..76b23cd 100644 --- a/etc/example.conf +++ b/etc/example.conf @@ -41,6 +41,7 @@ ; 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 4e38127..5bad0b8 100644 --- a/src/piler-smtp.c +++ b/src/piler-smtp.c @@ -385,10 +385,6 @@ 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");