Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mountpoint <max-listener> setting problem

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sat Nov 17, 2007 4:18 am    Post subject: Mountpoint <max-listener> setting problem Reply with quote

Greetings!

I am attempting to set specific maximum listeners for each mountpoint in my server as follows:

<mount>
<mount-name>/nac96k.mp3</mount-name>
<max-listeners>10</max-listeners>
<public>-1</public>
<no-yp>0</no-yp>
<hidden>1</hidden>
<burst-size>65536</burst-size>
<on-connect>/home/icecast/bin/source-start</on-connect>
<on-disconnect>/home/icecast/bin/source-end</on-disconnect>
</mount>

<mount>
<mount-name>/nac64k.mp3</mount-name>
<max-listeners>50</max-listeners>
<public>-1</public>
<no-yp>0</no-yp>
<hidden>1</hidden>
<burst-size>65536</burst-size>
<on-connect>/home/icecast/bin/source-start</on-connect>
<on-disconnect>/home/icecast/bin/source-end</on-disconnect>
</mount>

<mount>
<mount-name>/nac32k.mp3</mount-name>
<max-listeners>100</max-listeners>
<public>-1</public>
<no-yp>0</no-yp>
<hidden>1</hidden>
<burst-size>65536</burst-size>
<on-connect>/home/icecast/bin/source-start</on-connect>
<on-disconnect>/home/icecast/bin/source-end</on-disconnect>
</mount>

Despite these settings, however, the server shows each mountpoint as having "unlimited" connections (overall # of clients for the server is set to 500 in the <limits> section).

After doing a search in the forums, a previous thread suggested uncommenting the mountpoint section, which has been done in this case.

Here's a look at the error log for one of the moutpoint connections:

[2007-11-16 21:11:13] INFO connection/connection.c Source logging in at mountpoint "/nac96k.mp3"
[2007-11-16 21:11:13] DBUG connection/connection.c sources count is 0
[2007-11-16 21:11:13] DBUG source/source.c Applying mount information for "/nac96k.mp3"
[2007-11-16 21:11:13] DBUG format-mp3/format_mp3.c mp3 interval -1
[2007-11-16 21:11:13] DBUG source/source.c public set to 0
[2007-11-16 21:11:13] DBUG source/source.c max listeners to -1
[2007-11-16 21:11:13] DBUG source/source.c queue size to 524288
[2007-11-16 21:11:13] DBUG source/source.c burst size to 65535
[2007-11-16 21:11:13] DBUG source/source.c source timeout to 10
[2007-11-16 21:11:13] DBUG source/source.c fallback_when_full to 0
[2007-11-16 21:11:13] DBUG connection/connection.c source is ready to start

It seems to suggest ("max listeners to -1") that maximum listeners for the mountpoint is being set up as unlimited (assuming that's what the "-1" means).

So what am I missing here?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Nov 17, 2007 4:31 am    Post subject: Reply with quote

Are you sure those mount sections are not commented out?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Nov 17, 2007 1:48 pm    Post subject: Reply with quote

Here's the entire "icecast.xml" file:

<*deleted by poster*>


Last edited by Anonymous on Sun Nov 18, 2007 1:23 am; edited 1 time in total
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Nov 17, 2007 3:42 pm    Post subject: Reply with quote

so they are commented out, and therefore don't apply

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Nov 17, 2007 4:58 pm    Post subject: Reply with quote

OK, but I don't really understand this code to know where or how they are commented out... Can you please be more specific?

Thanks
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Nov 17, 2007 7:12 pm    Post subject: Reply with quote

load the xml into a browser, it will show you where the <!-- and --> markers are to indicate the start and end of a comment.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sun Nov 18, 2007 1:26 am    Post subject: Reply with quote

Thanks, Karl, that certainly makes it all a lot easier. Didn't really understand there was more than the "!" involved in marking a comment in the code. Embarassed

As they say, I know just enough to get me in trouble! Very Happy

Thanks again!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber