From: Timo Sirainen Date: Wed, 31 May 2017 11:27:16 +0000 (+0300) Subject: director: Use longer timeout for receiving user list in handshake X-Git-Tag: 2.3.0.rc1~1529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c8dec7f648cb0de2293a13265873baa640aa0cf;p=thirdparty%2Fdovecot%2Fcore.git 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. --- diff --git a/src/director/director-connection.c b/src/director/director-connection.c index b95051eb37..bc1943eedc 100644 --- a/src/director/director-connection.c +++ b/src/director/director-connection.c @@ -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 */