# HG changeset patch # User Timo Sirainen # Date 1163361266 -7200 # Node ID f24a1e1c8310ed7382d15ed8c6e38dbc1eb34649 # Parent 84058cf85f90c80109767f74fac90e03b5985bff Removed "DIE" command from auth protocol. It wasn't implemented, and I'm not sure if it's such a good idea anyway. diff -r 84058cf85f90 -r f24a1e1c8310 doc/auth-protocol.txt --- 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 TAB TAB M: "USER" TAB TAB TAB service= [TAB ] - M: "DIE" S: "NOTFOUND" TAB S: "FAIL" TAB TAB @@ -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 diff -r 84058cf85f90 -r f24a1e1c8310 src/auth/auth-master-connection.c --- 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;