From 919021ee728a78c3ebded8063e8be2bccd9e15c9 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 25 Aug 2010 16:12:43 +0000 Subject: [PATCH] Initialize connect timeout on each time through the loop. (closes issue #17911) Reported by: wurstsalat git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@283561 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_odbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/res/res_odbc.c b/res/res_odbc.c index d2ee97948c..a5d4ba9139 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -780,6 +780,7 @@ static int load_odbc_config(void) pooling = 0; limit = 0; bse = 1; + conntimeout = 10; forcecommit = 0; isolation = SQL_TXN_READ_COMMITTED; for (v = ast_variable_browse(config, cat); v; v = v->next) {