Skip to content

Commit

Permalink
director: Use longer timeout for receiving user list in handshake
Browse files Browse the repository at this point in the history
The sender also has a send timeout, so this allows the sender to abort
early and give a nicer error message.
  • Loading branch information
sirainen authored and GitLab committed Jun 4, 2017
1 parent 1ef9754 commit 5c8dec7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/director/director-connection.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 5c8dec7

Please sign in to comment.