1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## login-max-processes-count-warning.dpatch by Mathias Gug <mathiaz@ubuntu.com>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad dovecot-1.0.10~/dovecot-example.conf dovecot-1.0.10/dovecot-example.conf
9
--- dovecot-1.0.10~/dovecot-example.conf 2008-05-01 19:56:03.000000000 -0400
10
+++ dovecot-1.0.10/dovecot-example.conf 2008-05-01 19:56:04.000000000 -0400
12
# we check only once in a second if new processes should be created - if all
13
# of them are used at the time, we double their amount until the limit set by
14
# this setting is reached.
15
+# Be warned that some clients open a lot of imap connections simultaneously
16
+# and that the login process also handles ssl connections
17
+# (one login process per ssl connection is needed).
18
#login_max_processes_count = 128
20
# Maximum number of connections allowed per each login process. This setting
21
diff -urNad dovecot-1.0.10~/src/master/login-process.c dovecot-1.0.10/src/master/login-process.c
22
--- dovecot-1.0.10~/src/master/login-process.c 2008-05-01 19:56:03.000000000 -0400
23
+++ dovecot-1.0.10/src/master/login-process.c 2008-05-01 19:58:00.000000000 -0400
25
processes are logged in users who we don't want to kick out
26
because someone's started flooding */
27
if (group->oldest_prelogin_process != NULL &&
28
- group->oldest_prelogin_process->initialized)
29
+ group->oldest_prelogin_process->initialized) {
30
login_process_destroy(group->oldest_prelogin_process);
32
+ i_warning("login_max_processes_count reached and no login process to destroy !");
36
/* we want to respond fast when multiple clients are connecting