I don't understand the text but I understand the C code.<div>added to GIT 1a5b52e</div><div> <br><br><div class="gmail_quote">2010/6/27 王洪永 <span dir="ltr"><<a href="mailto:linuxwhy@163.com">linuxwhy@163.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">在测试FREEESWITCH<br>
1.0.19版本时候发现一个问题,会引起odbc过多连接,导致无法创建新连接问题。查找代码发现应该是下面的函数没有去掉连接的使用标志。<br>
<br>
<br>
SWITCH_DECLARE(void)<br>
switch_cache_db_release_db_handle(switch_cache_db_handle_t ** dbh)<br>
{<br>
if(dbh && *dbh)<br>
{<br>
switch_clear_flag(*dbh, CDF_INUSE); //去掉使用状态标志<br>
switch_mutex_unlock((*dbh)->mutex);<br>
*dbh = NULL;<br>
}<br>
}<br>
<font color="#888888"><br>
<br>
<br>
王洪永<br>
中企开源-IP通讯部<br>
Mon, 28 Jun 2010 09:18:52 +0800<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>