From 6181e386b5e63b167eded1e65633ec9e85531430 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 21 Jan 2008 18:15:57 +0000 Subject: Merged revisions 99341 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r99341 | tilghman | 2008-01-21 12:11:07 -0600 (Mon, 21 Jan 2008) | 8 lines Permit the user to specify number of seconds that a connection may remain idle, which fixes a crash on reconnect with the MyODBC driver. (closes issue #11798) Reported by: Corydon76 Patches: 20080119__res_odbc__idlecheck.diff.txt uploaded by Corydon76 (license 14) Tested by: mvanbaak ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99350 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/res_odbc.conf.sample | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configs/res_odbc.conf.sample') diff --git a/configs/res_odbc.conf.sample b/configs/res_odbc.conf.sample index 2fd9aa702..097849dd7 100644 --- a/configs/res_odbc.conf.sample +++ b/configs/res_odbc.conf.sample @@ -27,6 +27,11 @@ dsn => MySQL-asterisk username => myuser password => mypass pre-connect => yes +; +; On some databases, the connection times out and a reconnection will be +; necessary. This setting configures the amount of time a connection +; may sit idle (in seconds) before a reconnection will be attempted. +;idlecheck => 3600 ; Certain servers, such as MS SQL Server and Sybase use the TDS protocol, which ; limits the number of active queries per connection to 1. By setting up pools -- cgit v1.2.3