Mercurial > dovecot > core-2.2
diff src/auth/auth-settings.c @ 13958:7175320feafc
auth: Throttle SQL auth worker process creation if they can't connect to database.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 19 Jan 2012 17:46:52 +0200 |
parents | 8c8dd04b8496 |
children | ba770cba5598 |
line wrap: on
line diff
--- a/src/auth/auth-settings.c Thu Jan 19 16:33:13 2012 +0200 +++ b/src/auth/auth-settings.c Thu Jan 19 17:46:52 2012 +0200 @@ -282,6 +282,11 @@ if (set->debug) set->verbose = TRUE; + if (set->worker_max_count == 0) { + *error_r = "auth_worker_max_count must be above zero"; + return FALSE; + } + if (set->cache_size > 0 && set->cache_size < 1024) { /* probably a configuration error. older versions used megabyte numbers */