changeset 22254:58ffaff6f714

director: Use longer timeout for receiving user list in handshake The sender also has a send timeout, so this allows the sender to abort early and give a nicer error message.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 31 May 2017 14:27:16 +0300
parents 9676f01a11df
children a841e797bac2
files src/director/director-connection.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/director/director-connection.c	Wed May 31 13:42:31 2017 +0300
+++ b/src/director/director-connection.c	Wed May 31 14:27:16 2017 +0300
@@ -59,8 +59,9 @@
    parsing the data. */
 #define DIRECTOR_CONNECTION_SEND_USERS_TIMEOUT_MSECS (30*1000)
 /* Max idling time before "DONE" command must have been received,
-   or we'll disconnect. */
-#define DIRECTOR_CONNECTION_DONE_TIMEOUT_MSECS (30*1000)
+   or we'll disconnect. Use a slightly larger value than for _SEND_USERS_ so
+   that we'll get a better error if the sender decides to disconnect. */
+#define DIRECTOR_CONNECTION_DONE_TIMEOUT_MSECS (40*1000)
 /* How long to wait for PONG for an idling connection */
 #define DIRECTOR_CONNECTION_PING_IDLE_TIMEOUT_MSECS (10*1000)
 /* Maximum time to wait for PONG reply */