[asterisk-commits] tilghman: branch 1.4 r98467 - /branches/1.4/res/res_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 11 18:05:08 CST 2008


Author: tilghman
Date: Fri Jan 11 18:05:08 2008
New Revision: 98467

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98467
Log:
Add a connection timeout attribute, as that was what was intended with the
login timeout, but ODBC divides it up into 2 different timeouts.
(Closes issue #11745)

Modified:
    branches/1.4/res/res_odbc.c

Modified: branches/1.4/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_odbc.c?view=diff&rev=98467&r1=98466&r2=98467
==============================================================================
--- branches/1.4/res/res_odbc.c (original)
+++ branches/1.4/res/res_odbc.c Fri Jan 11 18:05:08 2008
@@ -507,6 +507,7 @@
 		return ODBC_FAIL;
 	}
 	SQLSetConnectAttr(obj->con, SQL_LOGIN_TIMEOUT, (SQLPOINTER *) 10, 0);
+	SQLSetConnectAttr(obj->con, SQL_ATTR_CONNECTION_TIMEOUT, (SQLPOINTER *) 10, 0);
 #ifdef NEEDTRACE
 	SQLSetConnectAttr(obj->con, SQL_ATTR_TRACE, &enable, SQL_IS_INTEGER);
 	SQLSetConnectAttr(obj->con, SQL_ATTR_TRACEFILE, tracefile, strlen(tracefile));




More information about the asterisk-commits mailing list