From: Timo Sirainen Date: Wed, 16 Dec 2009 01:19:53 +0000 (-0500) Subject: imap, pop3: Set default process limit to 1024, like it was in v1.x. X-Git-Tag: 2.0.beta2~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d09e4ee15faa7b6f1804b78f15d8778030401b4c;p=thirdparty%2Fdovecot%2Fcore.git imap, pop3: Set default process limit to 1024, like it was in v1.x. --HG-- branch : HEAD --- 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,