Odd connection problems with mod_mp3

"Andrew Liebeskind" <[email protected]> Mon, 27 Jan 2003 11:54:28 -0500 (EST)
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <[email protected]>
I've just started using mod_mp3, and I've started seeing something a
trifle odd.  If I jump from song to song (i.e., not letting streams finish
playing), I can play the first X songs in a playlist, where X is the
number of Apache child processes running at a given moment.  Then, the
next X songs I play will fail with an '[error syncing to mpeg]' (this is
all in Winamp).  For instance, there are normally five child processes
running on my box, so I can play entries 1-5, then 6-10 fail, then 11-15
play OK...  It's not tied to specific files, either -- if I try the same
one repeatedly, it'll still work 5 times, fail 5 times, etc...  This
happens if I move quickly from song to song, whereas if I let the
playlist play through (i.e, 6 connections in about 10 minutes), it
doesn't seem to have a problem.

It doesn't seem to be tied to MP3LimitPlayConnections, since I can set
it anywhere from 1 to 1000, or leave it out completely, and the same
thing happens.  This is occurring with Apache 1.3.27, and mod_mp3 0.39
(0.35 does the same thing).

The access_log entries for failed requests seem to differ from working
ones in that they don't show a file size.  Following are two entries;
the first failed, the second played:

192.168.1.128 - - [23/Jan/2003:19:57:49 -0500] "GET
/Legacy_of_Kain/Soul_Reaver/SR1_10_RuinedCity_dng.mp3 HTTP/1.0" 200 - \
"-" "WinampMPEG/2.8" 192.168.1.128 - - [23/Jan/2003:20:00:05 -0500] "GET
/Legacy_of_Kain/Soul_Reaver/SR1_11_Cathedral_cmb.mp3 HTTP/1.0" 200 \
2440768 "-" "WinampMPEG/2.8"


My config looks like this (I'm using the "mp3" directory to rewrite
URIs for MP3 file requests into mod_mp3 play requests, so I can get the
title info into the stream):

<Directory /storage/music/mp/>
    MP3Engine On
    MP3CastName "Foo"
    MP3Playlist /storage/music/mp3list.txt
    MP3DefaultOperation select
    MP3LimitPlayConnections 1
</Directory>

In the main config, I've got:

StartServers 4
MinServers 4
MaxServers 10

and this is in a virtual server with "Timeout 1200".

A couple of unrelated questions, as well, since I've just started with
mod_mp3:

1) Is it possible for the "mp3-file" file handler to present the
requested file as a Shoutcast stream with the title info, or does it
simply make sure the file goes out with the right MIME type?  I've
already got mod_mime, so Winamp seems to play MP3's from Apache equally
well with or without a "AddHandler mp3-file *.mp3" directive, but it
never shows title info, only the filename.  The main reason I installed
mod_mp3 is to be able to get title info showing up in the player
(usually Winamp).

2) I doubt this, but in Shoutcast streams, is it possible to seek to
specific time points in the song, the way Winamp can do with
http-streamed files?

Thanks for any help,

Andrew

-- 
### Andrew Liebeskind ###### That's logic, as I know and use it. ###
#    "I am the Golux", said the Golux, proudly, "the only Golux    #
#    in the world, and not a mere Device."                         #
#                        --_The Thirteen Clocks_, James Thurber    #
### [email protected] ########### http://www.meredevice.com/ ###