dovecot-1.3: Changed initial memory pool sizes.

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 11 01:50:40 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/8217998f8133
changeset: 9070:8217998f8133
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 10 18:50:35 2009 -0400
description:
Changed initial memory pool sizes.

diffstat:

3 files changed, 4 insertions(+), 3 deletions(-)
src/imap/client.c        |    3 ++-
src/imap/imap-settings.c |    2 +-
src/pop3/pop3-settings.c |    2 +-

diffs (37 lines):

diff -r c957575afd8a -r 8217998f8133 src/imap/client.c
--- a/src/imap/client.c	Fri Apr 10 18:38:36 2009 -0400
+++ b/src/imap/client.c	Fri Apr 10 18:50:35 2009 -0400
@@ -53,7 +53,8 @@ struct client *client_create(int fd_in, 
 	client->to_idle = timeout_add(CLIENT_IDLE_TIMEOUT_MSECS,
 				      client_idle_timeout, client);
 
-	client->command_pool = pool_alloconly_create("client command", 1024*12);
+	client->command_pool =
+		pool_alloconly_create(MEMPOOL_GROWING"client command", 1024*12);
 	client->user = user;
 
 	for (ns = user->namespaces; ns != NULL; ns = ns->next) {
diff -r c957575afd8a -r 8217998f8133 src/imap/imap-settings.c
--- a/src/imap/imap-settings.c	Fri Apr 10 18:38:36 2009 -0400
+++ b/src/imap/imap-settings.c	Fri Apr 10 18:50:35 2009 -0400
@@ -96,7 +96,7 @@ void imap_settings_read(const struct ima
 	void **sets;
 
 	if (settings_pool == NULL)
-		settings_pool = pool_alloconly_create("imap settings", 2048);
+		settings_pool = pool_alloconly_create("imap settings", 4096);
 	else
 		p_clear(settings_pool);
 
diff -r c957575afd8a -r 8217998f8133 src/pop3/pop3-settings.c
--- a/src/pop3/pop3-settings.c	Fri Apr 10 18:38:36 2009 -0400
+++ b/src/pop3/pop3-settings.c	Fri Apr 10 18:50:35 2009 -0400
@@ -95,7 +95,7 @@ void pop3_settings_read(const struct pop
 	void **sets;
 
 	if (settings_pool == NULL)
-		settings_pool = pool_alloconly_create("pop3 settings", 1024);
+		settings_pool = pool_alloconly_create("pop3 settings", 4096);
 	else
 		p_clear(settings_pool);
 


More information about the dovecot-cvs mailing list