[Freeswitch-dev] odbc连接过多的问题

Anthony Minessale anthony.minessale at gmail.com
Mon Jun 28 06:30:21 PDT 2010


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


2010/6/27 王洪永 <linuxwhy at 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
>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

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

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100628/8b8e2828/attachment.html 


More information about the FreeSWITCH-dev mailing list