diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-21 18:11:07 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-21 18:11:07 +0000 |
commit | 19cfd3cfc36ff3084365b21f43cd6ac0c1528083 (patch) | |
tree | c586c4229af8a42180c90c420bd3a9486b36b3a6 /include | |
parent | b59f8fdfbc864479de973d1c9a36536e3533872a (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@99341 f38db490-d61c-443f-a65b-d21fe96a405b
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 aba2a24e8..7f1f55812 100644 --- a/include/asterisk/res_odbc.h +++ b/include/asterisk/res_odbc.h @@ -37,6 +37,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; |