# HG changeset patch # User Timo Sirainen # Date 1496230036 -10800 # Node ID 58ffaff6f714d439d644ac8c2bbc85bd424b50a1 # Parent 9676f01a11dfb4136226b3902ad35f91f8d7dd02 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 -r 9676f01a11df -r 58ffaff6f714 src/director/director-connection.c --- 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 */