[Icecast] ices2 not re-connecting on live stream
Frédéric Brière
fbriere at fbriere.net
Sun Feb 20 12:15:54 UTC 2005
On Wed, Nov 24, 2004 at 07:26:27PM -0600, Keith Whyte wrote:
> I have a two instance setup, and have been finding that after a network
> error occurs, the instance does not reconnect.
>
> The ESTABLISHED connection is the instance which didn't get blocked by
> iptables.
> and those sockets seem to remain in CLOSE_WAIT until i kill the ices
> process.
This sounds similar to what I encountered when I first set up ices2 --
see <http://lists.xiph.org/pipermail/icecast/2004-July/007364.html>.
In short, if you're streaming over a WAN, the main ices2 branch is
woefully inadequate, and you ought to try Karl Heyes' branch at
<http://mediacast1.com/~karl/>, as he described in his reply to my
original email. (Don't get ices 2.0.1, which is merely a point release
and doesn't incorporate Karl's changes.)
If you let ices2 run for a long time, you'll probably need this patch as
well:
--- ices2-2.0.0-kh59.orig/src/input.c
+++ ices2-2.0.0-kh59/src/input.c
@@ -335,6 +335,7 @@
if (next_mod->open_module (next_mod) == 0)
{
next_mod->start = start;
+ next_mod->failures = 0;
ices_config->next_track = 0;
return next_mod;
}
I've been running ices2 like this 24/7 for months now, only restarting
it once a week for log rotation. Never had a problem since.
--
Frédéric Brière <*> fbriere at fbriere.net
=> <fbriere at abacom.com> IS NO MORE: <http://www.abacomsucks.com> <=
More information about the Icecast
mailing list