From: Timo Sirainen Date: Thu, 15 Sep 2011 10:53:10 +0000 (+0300) Subject: lib-sql: Dropped connect timeout to 5 seconds. X-Git-Tag: 2.0.15~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e5c39db5002ab15db142dda6c42e0422a17437;p=thirdparty%2Fdovecot%2Fcore.git lib-sql: Dropped connect timeout to 5 seconds. Postfix is using 10 second auth timeout and this needs to be less than that. --- diff --git a/src/lib-sql/sql-api-private.h b/src/lib-sql/sql-api-private.h index e965db5ff0..1b9f2435df 100644 --- a/src/lib-sql/sql-api-private.h +++ b/src/lib-sql/sql-api-private.h @@ -25,7 +25,7 @@ enum sql_db_state { is never used). */ #define SQL_CONNECT_RESET_DELAY 15 /* Abort connect() if it can't connect within this time. */ -#define SQL_CONNECT_TIMEOUT_SECS 10 +#define SQL_CONNECT_TIMEOUT_SECS 5 /* Abort queries after this many seconds */ #define SQL_QUERY_TIMEOUT_SECS 60 /* Default max. number of connections to create per host */