diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-01-21 18:15:57 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-01-21 18:15:57 +0000 |
commit | 6181e386b5e63b167eded1e65633ec9e85531430 (patch) | |
tree | 782111d3a563fd00fa4d158650f8b27edfbf3aaa /include | |
parent | 965c454543aa55a68c8973e108f1dcb64427fe97 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_odbc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/res_odbc.h b/include/asterisk/res_odbc.h index fcb1581e4..0a4b4b58f 100644 --- a/include/asterisk/res_odbc.h +++ b/include/asterisk/res_odbc.h @@ -38,6 +38,7 @@ struct odbc_obj { ast_mutex_t lock; SQLHDBC con; /* ODBC Connection Handle */ struct odbc_class *parent; /* Information about the connection is protected */ + struct timeval last_used; unsigned int used:1; unsigned int up:1; AST_LIST_ENTRY(odbc_obj) list; |