Mercurial > dovecot > core-2.2
diff src/director/director-connection.c @ 14575:dbe6d05fd595
director: When we find unwanted connection, wait for 10s for it to disconnect us, not 10ms.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 20 May 2012 03:08:01 +0300 |
parents | 42cca8a1d179 |
children | c93ca5e46a8a 7be9411da17b |
line wrap: on
line diff
--- a/src/director/director-connection.c Sun May 20 02:41:08 2012 +0300 +++ b/src/director/director-connection.c Sun May 20 03:08:01 2012 +0300 @@ -70,7 +70,7 @@ /* If outgoing director connection exists for less than this many seconds, mark the host as failed so we won't try to reconnect to it immediately */ #define DIRECTOR_SUCCESS_MIN_CONNECT_SECS 40 -#define DIRECTOR_WAIT_DISCONNECT_MSECS 10 +#define DIRECTOR_WAIT_DISCONNECT_SECS 10 #if DIRECTOR_CONNECTION_DONE_TIMEOUT_MSECS <= DIRECTOR_CONNECTION_PING_TIMEOUT_MSECS # error DIRECTOR_CONNECTION_DONE_TIMEOUT_MSECS is too low @@ -187,7 +187,7 @@ o_stream_uncork(conn->output); conn->to_disconnect = - timeout_add(DIRECTOR_WAIT_DISCONNECT_MSECS, + timeout_add(DIRECTOR_WAIT_DISCONNECT_SECS*1000, director_connection_wait_timeout, conn); }