[icecast-dev] time out issues with icecast2

John covici
Fri, 06 Aug 2004 14:57:34 -0000

on Friday 08/15/2003 Michael Smith(msmith@xiph.org) wrote
 > On Friday 15 August 2003 02:01, John Covici wrote:
 > > Hi.  I am having a strange problem where the source times out during
 > > anicecast2 stream -- I was using mp3pro at 32khz and even some other
 > > speeds.  I have set the source timeout for 1 minute, but it still
 > > times out or says connection reset by peer.
 > >
 > > Now the strange thing is that I also had a windows media stream on
 > > the same source machine going to a wm server and it had no problems!
 > > So can someone tell me am I missing something, is wm more reliable?
 > >
 > > Thanks.
 >
 > You haven't said what software you're using to create your mp3
stream. It's
 > almost certainly a bug in that software, not in icecast2. However, I
can't
 > say for certain without you giving a LOT more detailed information.

I am using simplecast from spacialaudio.com which uses the winamp
mp3pro input plugin to encode mp3pro.  This is a windows program
which takes from the soundcard and streams to either Windows Media or
shoutcast or icecast 1 or 2 servers.

What happens is that maybe once an hour or maybe longer, I either get
connection reset by peer for the source, or it complains about the
socket timeout expiring and disconnects the source which
automatically logs in again, but the poor listeners have to reconnect.

At first I thought they were having network problems at the source,
such as someone else using the pipe or something, but then why would
the Windows Media work without problems, that is why I thought it
might be an icecast bug.

Here is a relevant log excerpt:

[2003-08-13  21:44:46] INFO connection/_handle_source_request Source
logging in at mountpoint "/live_pro", 64.30.208.48
[2003-08-13  21:44:46] INFO connection/_handle_source_request Source
tried to log in as /live_pro, but mountpoint is already used,
\64.30.208.48
[2003-08-13  21:45:01] INFO connection/_handle_source_request Source
logging in at mountpoint "/live_pro", 64.30.208.48
[2003-08-13  21:45:01] INFO connection/_handle_source_request Source
tried to log in as /live_pro, but mountpoint is already used,
\64.30.208.48
[2003-08-13  21:45:16] INFO connection/_handle_source_request Source
logging in at mountpoint "/live_pro", 64.30.208.48
[2003-08-13  21:45:16] INFO connection/_handle_source_request Source
tried to log in as /live_pro, but mountpoint is already used,
\64.30.208.48
[2003-08-13  21:45:30] WARN source/source_main Disconnecting source:
socket timeout (60 s) expired, 64.30.208.48
[2003-08-13  21:45:30] INFO source/source_main Removing source
following disconnection, 64.30.208.48
[2003-08-13  21:45:30] INFO source/source_main Source "/live_pro"
exiting, 64.30.208.48
[2003-08-13  21:45:31] INFO connection/_handle_source_request Source
logging in at mountpoint "/live_pro", 64.30.208.48
[2003-08-13  21:45:31] DBUG source/source_main Source creation
complete, 64.30.208.48