imap/pop3/lmtp processes with service_count=1 use up a client only for a
very short time. Don't count them.
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)