[icecast] Transparent Proxy

Alex Stansfield
Fri, 06 Aug 2004 14:22:36 -0000

On Mon, 2001-09-17 at 00:02, Alex Stansfield wrote:
> Hi,
>
> The only need I have for icecast is as a transparent proxy. The problem
> is I can't get it to work as one, is this feature implemented

I fixed the problem, it seemed that in source.c in the function
source_login in this piece of code:


--

write_log (LOG_DEFAULT, "Accepted encoder on mountpoint %s from %s. %d
sources connected", source->audiocast.mount, con_host (con),
info.num_sources);

thread_mutex_lock(&info.source_mutex);
avl_insert(info.sources, con);
thread_mutex_unlock(&info.source_mutex);

--

I found that the code was stopping after the thread_mutex_lock, my guess
(seeing as it's 2am in the morning and I'm just happy to have it
working) is that the mutex has already been locked causing this function
to wait when called. I commented out the line where it calls
thread_mutex_lock and it all seems to work now.

Cheers,

Alex





application/pgp-signature attachment: stored

-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/octet-stream
Size: 233 bytes
Desc: not available