Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4800:f24a1e1c8310 HEAD
Removed "DIE" command from auth protocol. It wasn't implemented, and I'm not
sure if it's such a good idea anyway.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 12 Nov 2006 21:54:26 +0200 |
parents | 84058cf85f90 |
children | 53b73f19a652 |
files | doc/auth-protocol.txt src/auth/auth-master-connection.c |
diffstat | 2 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/auth-protocol.txt Sun Nov 12 21:50:50 2006 +0200 +++ b/doc/auth-protocol.txt Sun Nov 12 21:54:26 2006 +0200 @@ -150,7 +150,6 @@ M: "REQUEST" TAB <id> TAB <client-pid> TAB <client-id> M: "USER" TAB <id> TAB <userid> TAB service=<service> [TAB <parameters>] - M: "DIE" S: "NOTFOUND" TAB <id> S: "FAIL" TAB <id> TAB <error message> @@ -165,9 +164,6 @@ ID is a connection-specific unique request identifier. It must be a 32bit number, so typically you'd just increment it by one. -DIE makes the server stop accepting new requests, and as soon as the -existing requests are finished, it kills itself. - NOTFOUND reply means that the request or user wasn't found. Master shouldn't even try to send REQUEST commands for nonexisting requests, so if it happens it means either a timeout caused by very high load, or client
--- a/src/auth/auth-master-connection.c Sun Nov 12 21:50:50 2006 +0200 +++ b/src/auth/auth-master-connection.c Sun Nov 12 21:54:26 2006 +0200 @@ -141,12 +141,6 @@ return TRUE; } -static bool -master_input_die(struct auth_master_connection *conn) -{ - return TRUE; -} - static void master_input(void *context) { struct auth_master_connection *conn = context; @@ -194,8 +188,6 @@ ret = master_input_request(conn, line + 8); else if (strncmp(line, "USER\t", 5) == 0) ret = master_input_user(conn, line + 5); - else if (strcmp(line, "DIE") == 0) - ret = master_input_die(conn); else { /* ignore unknown command */ ret = TRUE;