View previous topic :: View next topic |
Author |
Message |
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jul 31, 2007 1:58 am Post subject: Icecast KH |
|
|
ok, kh17 is up at my website. This cleans up the issues reported to me. The changes in recent versions are more or less settled down now. Besides any race cases or resource leaks, the more notable stuff includes
By default (if available) IPv6 and IPv4 will be listened for.
Allow IP and Deny IP lists. The latter is probably more useful or problem clients.
The alias mechanism works with /admin pages as well as webroot/streams
XSPF generation works in the same way as m3u except it is based on a XSLT in adminroot. Like m3u, if the .xspf file already exists in webroot then that is used.
Relays can specify multiple servers to contact, also if a relay receives redirection response then it will try the returned address.
The streamlist for slaves was based on the masters mount list which meant streams without a mount where not exported. This was fine is most cases but now the streamlist works from the stats (marked as non-hidden) so even non-mount'd streams are exported.
A mount can specify a max bandwidth which can be used in conjunction with max listeners
Wildcard mounts implemented. The symbols *, [], ? have a special meaning which can allow a single mount defintion to match multiple streams or files (eg /stream*.ogg). This way a single auth definition or other mount setting like max listeners can be specified once but applied multiple times.
auth url now takes a handlers option as well as stream-auth. The handlers setting creates a threadpool for that particular auth (default 1). This should help process auth requests especially if the mount is wildcard based.
karl. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Aug 23, 2007 3:29 pm Post subject: |
|
|
kh19 is out now. The crash cases that were reported to me are now fixed (thanks for the feedback), so if there are any others then please report them. No functional changes have occurred since kh17, just stabilizing work.
Also, many updates have been made to the trunk code, so if any issues are showing up then by all means report them.
karl. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Sep 04, 2007 1:35 am Post subject: |
|
|
kh20 is up now. some thread changes which should reduce the delay before data is returned, also the listening sockets will reopen over an xml reload.
I've put in a check for a Location header coming back from auth url which can be used to send a http 302 (redirect) response to the new listener. This should allow people to do things like load sharing based on whatever they like.
karl. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Tue Sep 04, 2007 8:47 am Post subject: |
|
|
There must be some problem around the win32 service, as it doesn't register itself in the services list, and manually adding it doesn't work. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Sep 04, 2007 6:45 pm Post subject: |
|
|
Are the authentication tags or something different in this one, any authenticated streams I put up come as unauthenticated |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Sep 04, 2007 6:54 pm Post subject: |
|
|
deffo an issue in kh20 as im now back running kh19 successfully |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Sep 04, 2007 10:08 pm Post subject: |
|
|
robertut wrote: |
There must be some problem around the win32 service, as it doesn't register itself in the services list, and manually adding it doesn't work. |
I think I've made 1 change to win32 in a long time and that was to prevent a buffer overflow, so I'm puzzled at that one. Annoyingly it's not something I can verify. Does it work as it should as an app as opposed to a service?
karl. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Sep 04, 2007 10:20 pm Post subject: |
|
|
Scott_FreeLiveFooty.TV wrote: |
Are the authentication tags or something different in this one, any authenticated streams I put up come as unauthenticated |
Can you send me the xml (pw can be removed) and error log for this, theres no xml difference in kh20.
karl. |
|
Back to top |
|
|
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Wed Sep 05, 2007 6:16 am Post subject: |
|
|
karlH wrote: |
robertut wrote: |
There must be some problem around the win32 service, as it doesn't register itself in the services list, and manually adding it doesn't work. |
I think I've made 1 change to win32 in a long time and that was to prevent a buffer overflow, so I'm puzzled at that one. Annoyingly it's not something I can verify. Does it work as it should as an app as opposed to a service?
karl. |
Symptoms:
- The KH setup has the option at the end to install the service. Ticking this option brings up a console window, that closes after a few seconds, but the service doesn't appear between the services in the Services applet.
- the gui version, Icecast2.exe - works fine
- the console version, icecast2console.exe - works fine
- the service version, after adding it manually to services, with sc create, exits unexpectedly according to the system log. The crash of the application occurs almost instantly.
The service version would be needed the most, as restart actions can be defined etc etc, in Win32 environment that would be the most suitable solution.
The same behaviour was noticed at KH 19 also. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Wed Sep 05, 2007 8:15 am Post subject: |
|
|
mount setup is like such :
Code: |
<listen-socket>
<port>8924</port>
<!-- defining shoutcast-mount in here will make icecast automatically allocate <port> and <port>+1 -->
<shoutcast-mount>stream8.nsv</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8926</port>
<!-- defining shoutcast-mount in here will make icecast automatically allocate <port> and <port>+1 -->
<shoutcast-mount>/stream9.nsv</shoutcast-mount>
</listen-socket>
|
then the rest is like this for the relays
Code: |
<mount>
<authentication type="url">
<option name="allow_duplicate_users" value="1"/>
<option name="listener_add" value="http://freelivefooty.tv/forum/ic_auth.php" />
<option name="listener_remove" value="http://freelivefooty.tv/forum/ic_auth.php" />
</authentication>
<burst-size>128936</burst-size>
<max-listeners>300</max-listeners>
<mount-name>/stream7.nsv</mount-name>
<password>xxxxx</password>
</mount>
<relay>
<server>64.157.xxx.xxx</server>
<port>8050</port>
<mount>/;stream.nsv</mount>
<local-mount>/stream7.nsv</local-mount>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
<mount>
<authentication type="url">
<option name="allow_duplicate_users" value="1"/>
<option name="listener_add" value="http://freelivefooty.tv/forum/ic_auth.php" />
<option name="listener_remove" value="http://freelivefooty.tv/forum/ic_auth.php" />
</authentication>
<burst-size>128936</burst-size>
<max-listeners>300</max-listeners>
<mount-name>stream8.nsv</mount-name>
<password>xxxxx</password>
</mount>
<relay>
<server>64.157.xxx.xxx</server>
<port>8040</port>
<mount>/;stream.nsv</mount>
<local-mount>/stream8.nsv</local-mount>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
|
[/quote] |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Wed Sep 05, 2007 8:24 am Post subject: |
|
|
cant post an error log just now as I am running KH19. Also a bug in KH19 :
It seems to crash a lot, like just give up and i have to start it using:
icecast -b -c /usr/local/etc/icecast.xml |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Sep 05, 2007 3:26 pm Post subject: |
|
|
You have no / in <mount-name>stream8.nsv</mount-name> so that won't be matching any stream.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Sat Sep 08, 2007 6:49 pm Post subject: |
|
|
Even still, no auth. Anyone else with this issue on kh20? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Sep 08, 2007 10:25 pm Post subject: |
|
|
You could email the error log (level 4) along with the xml, I have a modest understanding of the code
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Sun Sep 16, 2007 12:48 pm Post subject: |
|
|
what is different in kh20a? |
|
Back to top |
|
|
|