added some explanation to example.conf

Change-Id: I859b48c70008a4961c87cd23c16ce9573bf8a18a
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-10-31 09:39:17 +01:00
parent f4e9238aaf
commit 2e5ddbaef5
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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");