[Freeswitch-users] FW: Inbound ESL .RecvEventTimed(0) Blocking?

Michael Collins msc at freeswitch.org
Fri Apr 6 23:12:14 MSD 2012


On Fri, Apr 6, 2012 at 12:53 AM, Michael Lutz <mytemike72 at gmail.com> wrote:

> Hi,****
>
> ** **
>
> Can someone please give me an answer, I am problaby not the first to
> notice…****
>
> ** **
>
> I need to know why (and how to avoid)  ESLevent RecvEventTimed(0) being
> blocking and keeps waiting for event to arrive,  as it should not.****
>
> It seems to ignore any form of time you pass as parameter and just always
> wait for an event.****
>
> ** **
>
> Btw, I am on Windows…
>

You say that no matter what value you put in for the argument that it
always waits for an event? On a Linux box I tested Tony's suggestion about
using 1 vs 0 and it worked. I just tested on latest git from 2 days ago and
I definitely have "polling" behavior when I use 1 but I have "wait forever"
behavior when I use 0. I suspect that the wiki is wrong. (Sadly, this means
that chapter 9, page 224 is also wrong.)

I'll try testing on Windows later today and see what I get. BTW, are you
building FS from scratch or are you using the weekly binaries?

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120406/e37cc9b3/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list