dovecot-2.0: director: Update connection count when client disco...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 25 23:04:01 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/26cfc1c3a4b1
changeset: 11373:26cfc1c3a4b1
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 25 21:03:29 2010 +0100
description:
director: Update connection count when client disconnects.

diffstat:

 src/director/director-connection.c |  3 +++
 src/director/doveadm-connection.c  |  3 +++
 src/director/notify-connection.c   |  3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

diffs (58 lines):

diff -r bd8ed4b97fe3 -r 26cfc1c3a4b1 src/director/director-connection.c
--- a/src/director/director-connection.c	Tue May 25 20:03:39 2010 +0100
+++ b/src/director/director-connection.c	Tue May 25 21:03:29 2010 +0100
@@ -7,6 +7,7 @@
 #include "istream.h"
 #include "ostream.h"
 #include "str.h"
+#include "master-service.h"
 #include "mail-host.h"
 #include "director.h"
 #include "director-host.h"
@@ -758,6 +759,8 @@
 	if (close(conn->fd) < 0)
 		i_error("close(director connection) failed: %m");
 	i_free(conn);
+
+	master_service_client_connection_destroyed(master_service);
 }
 
 static void director_connection_timeout(struct director_connection *conn)
diff -r bd8ed4b97fe3 -r 26cfc1c3a4b1 src/director/doveadm-connection.c
--- a/src/director/doveadm-connection.c	Tue May 25 20:03:39 2010 +0100
+++ b/src/director/doveadm-connection.c	Tue May 25 21:03:29 2010 +0100
@@ -8,6 +8,7 @@
 #include "array.h"
 #include "str.h"
 #include "llist.h"
+#include "master-service.h"
 #include "user-directory.h"
 #include "mail-host.h"
 #include "director.h"
@@ -269,6 +270,8 @@
 	if (close(conn->fd) < 0)
 		i_error("close(doveadm connection) failed: %m");
 	i_free(conn);
+
+	master_service_client_connection_destroyed(master_service);
 }
 
 void doveadm_connections_deinit(void)
diff -r bd8ed4b97fe3 -r 26cfc1c3a4b1 src/director/notify-connection.c
--- a/src/director/notify-connection.c	Tue May 25 20:03:39 2010 +0100
+++ b/src/director/notify-connection.c	Tue May 25 21:03:29 2010 +0100
@@ -3,6 +3,7 @@
 #include "lib.h"
 #include "ioloop.h"
 #include "istream.h"
+#include "master-service.h"
 #include "director.h"
 #include "user-directory.h"
 #include "notify-connection.h"
@@ -59,4 +60,6 @@
 	if (close(conn->fd) < 0)
 		i_error("close(notify connection) failed: %m");
 	i_free(conn);
+
+	master_service_client_connection_destroyed(master_service);
 }


More information about the dovecot-cvs mailing list