From d09e4ee15faa7b6f1804b78f15d8778030401b4c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 15 Dec 2009 20:19:53 -0500 Subject: [PATCH] imap, pop3: Set default process limit to 1024, like it was in v1.x. --HG-- branch : HEAD --- doc/example-config/conf.d/master.conf | 11 +++++++++++ src/imap/imap-settings.c | 2 +- src/pop3/pop3-settings.c | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/example-config/conf.d/master.conf b/doc/example-config/conf.d/master.conf index 95e44fe0fe..164b162ccf 100644 --- a/doc/example-config/conf.d/master.conf +++ b/doc/example-config/conf.d/master.conf @@ -16,6 +16,9 @@ service imap-login { # is faster. #service_count = 1 + # Number of processes to always keep waiting for more connections. + #process_min_avail = 0 + # If you set service_count=0, you probably need to grow this. #vsz_limit = 64M } @@ -40,6 +43,14 @@ service imap { # Most of the memory goes to mmap()ing files. You may need to increase this # limit if you have huge mailboxes. #vsz_limit = 256M + + # Max. number of IMAP processes (connections) + #process_count = 1024 +} + +service pop3 { + # Max. number of IMAP processes (connections) + #process_count = 1024 } service auth { diff --git a/src/imap/imap-settings.c b/src/imap/imap-settings.c index 378421c899..f6280a3aba 100644 --- a/src/imap/imap-settings.c +++ b/src/imap/imap-settings.c @@ -40,7 +40,7 @@ struct service_settings imap_service_settings = { .drop_priv_before_exec = FALSE, .process_min_avail = 0, - .process_limit = 0, + .process_limit = 1024, .client_limit = 0, .service_count = 1, .vsz_limit = -1U, diff --git a/src/pop3/pop3-settings.c b/src/pop3/pop3-settings.c index 4e4c2b4472..fa40339cdc 100644 --- a/src/pop3/pop3-settings.c +++ b/src/pop3/pop3-settings.c @@ -40,7 +40,7 @@ struct service_settings pop3_service_settings = { .drop_priv_before_exec = FALSE, .process_min_avail = 0, - .process_limit = 0, + .process_limit = 1024, .client_limit = 0, .service_count = 1, .vsz_limit = -1U, -- 2.47.3