View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Sat Nov 17, 2007 4:18 am Post subject: Mountpoint <max-listener> setting problem |
|
|
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
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 17, 2007 4:31 am Post subject: |
|
|
Are you sure those mount sections are not commented out?
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Sat Nov 17, 2007 1:48 pm Post subject: |
|
|
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
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 17, 2007 3:42 pm Post subject: |
|
|
so they are commented out, and therefore don't apply
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Sat Nov 17, 2007 4:58 pm Post subject: |
|
|
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
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 17, 2007 7:12 pm Post subject: |
|
|
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 |
|
|
Anonymous Guest
|
Posted: Sun Nov 18, 2007 1:26 am Post subject: |
|
|
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.
As they say, I know just enough to get me in trouble!
Thanks again! |
|
Back to top |
|
|
|