I don't understand the text but I understand the C code.
added to GIT 1a5b52e
 

2010/6/27 王洪永 <linuxwhy@163.com>
在测试FREEESWITCH
1.0.19版本时候发现一个问题,会引起odbc过多连接,导致无法创建新连接问题。查找代码发现应该是下面的函数没有去掉连接的使用标志。


SWITCH_DECLARE(void)
switch_cache_db_release_db_handle(switch_cache_db_handle_t ** dbh)
{
  if(dbh && *dbh)
  {
       switch_clear_flag(*dbh, CDF_INUSE);  //去掉使用状态标志
       switch_mutex_unlock((*dbh)->mutex);
       *dbh = NULL;
  }
}



王洪永
中企开源-IP通讯部
Mon, 28 Jun 2010 09:18:52 +0800



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900