[Freeswitch-users] FreeSwitch is blocking when doing "shutdown"
Steven Ayre
steveayre at gmail.com
Sat Nov 24 02:04:56 MSK 2012
freeswitch.Dbh uses the internal caching, so it does reuse persistent connections. First connect'll be a full connect but after that it'll be instant.
I believe it checks the handle is still connected before returning it.
Steve on iPhone
On 23 Nov 2012, at 20:20, Mimiko <vbvbrj at gmail.com> wrote:
> On 23.11.2012 20:16, Steven Ayre wrote:
>> In a call it'd be generally be advisable to use 'while session:ready'
>> instead of 'while true'
>
> Nope this does not work:
> "attempt to index global 'session' (a nil value)"
>
>> Looks like they both wrap the outermost layer in:
>> for e in (function() return con:pop(1) end) do
>
> Yes I know about this method, but this does not track DB going down. Or
> isn't using freeswitch.Dbh() connection initiation too slow? If a lot of
> events will come, then connection and disconnect from server will be at
> high rates. Why not use persistent connection?
>
> --
> Mimiko desu.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list