dovecot-2.0-sslstream: imap/pop3 now supports multiple connectio...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:24 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/cb6dc691fa5a
changeset: 10136:cb6dc691fa5a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 22 18:31:40 2009 -0400
description:
imap/pop3 now supports multiple connections/process, removed the restriction.

diffstat:

2 files changed, 14 deletions(-)
src/imap/main.c |    7 -------
src/pop3/main.c |    7 -------

diffs (48 lines):

diff -r 545bdb7670d2 -r cb6dc691fa5a src/imap/main.c
--- a/src/imap/main.c	Thu Oct 22 18:31:18 2009 -0400
+++ b/src/imap/main.c	Thu Oct 22 18:31:40 2009 -0400
@@ -155,12 +155,6 @@ login_client_connected(const struct mast
 	const char *error;
 	buffer_t input_buf;
 
-	if (imap_clients != NULL) {
-		i_error("Can't handle more than one connection currently");
-		(void)close(client->fd);
-		return;
-	}
-
 	memset(&input, 0, sizeof(input));
 	input.module = input.service = "imap";
 	input.local_ip = client->auth_req.local_ip;
@@ -173,7 +167,6 @@ login_client_connected(const struct mast
 		(void)close(client->fd);
 		return;
 	}
-	master_login_deinit(&master_login);
 
 	if (mail_storage_service_lookup_next(storage_service, &input,
 					     &user, &mail_user, &error) <= 0)
diff -r 545bdb7670d2 -r cb6dc691fa5a src/pop3/main.c
--- a/src/pop3/main.c	Thu Oct 22 18:31:18 2009 -0400
+++ b/src/pop3/main.c	Thu Oct 22 18:31:40 2009 -0400
@@ -117,12 +117,6 @@ login_client_connected(const struct mast
 	const char *error;
 	buffer_t input_buf;
 
-	if (pop3_clients != NULL) {
-		i_error("Can't handle more than one connection currently");
-		(void)close(client->fd);
-		return;
-	}
-
 	memset(&input, 0, sizeof(input));
 	input.module = input.service = "pop3";
 	input.local_ip = client->auth_req.local_ip;
@@ -135,7 +129,6 @@ login_client_connected(const struct mast
 		(void)close(client->fd);
 		return;
 	}
-	master_login_deinit(&master_login);
 
 	if (mail_storage_service_lookup_next(storage_service, &input,
 					     &user, &mail_user, &error) <= 0)


More information about the dovecot-cvs mailing list