[Icecast-dev] libshout : how to detect network connection lost

tech@viewsurf tech at viewsurf.com
Fri May 23 01:07:43 PDT 2008


Randy McAnally a écrit :
> I noticed the same problem in the Perl wrappers since many years ago.  I 
> ended up wrapping the libshout portion of the perl code in an eval/alarm to 
> detect the hang and restart the libshout thread as needed.
> 

Thanks for the answer.

I've modified my code to use the non blocking api of libshout. Hence, i 
check the return value of shout_queuelen and exit if it's too high.

Thanks

Florian


More information about the Icecast-dev mailing list