]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Be more relaxed about giving service auth's client_limit being too low.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 Dec 2011 21:35:58 +0000 (23:35 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 Dec 2011 21:35:58 +0000 (23:35 +0200)
imap/pop3/lmtp processes with service_count=1 use up a client only for a
very short time. Don't count them.

src/master/master-settings.c

index 623ca0caeba978193f1ae6a746efb1e44241b179..c592fbfaa2abdd56934d88a976ff7f9b1d5eb478 100644 (file)
@@ -553,7 +553,9 @@ master_settings_verify(void *_set, pool_t pool, const char **error_r)
                                   service->protocol)) {
                        /* each imap/pop3/lmtp process can use up a connection,
                           although if service_count=1 it's only temporary */
-                       max_auth_client_processes += process_limit;
+                       if (service->service_count != 1 ||
+                           strcmp(service->type, "login") == 0)
+                               max_auth_client_processes += process_limit;
                }
                if (strcmp(service->type, "login") == 0 ||
                    strcmp(service->name, "auth") == 0)