View previous topic :: View next topic |
Author |
Message |
sven
Joined: 09 Apr 2014 Posts: 34
|
Posted: Thu Sep 04, 2014 10:47 am Post subject: Not calling mount_remove auth url on socket timeout |
|
|
I have multiple mountpoints defined in the Icecast config file, all look like:
Code: |
<mount>
<mount-name>/mount.ogg</mount-name>
<password>hackme</password>
<admin_comments_only>0</admin_comments_only>
<dump-file>/opt/media/icecast/dumpfiles/mount.ogg</dump-file>
<authentication type="url">
<option name="allow_duplicate_users" value="0"/>
<option name="realm" value="Mount name"/>
<option name="mount_add" value="http://192.168.1.50/icecast/mount/add/110"/>
<option name="mount_remove" value="http://192.168.1.50/icecast/mount/remove/110"/>
<option name="listener_add" value="http://192.168.1.50/icecast/listener/add/110"/>
<option name="listener_remove" value="http://192.168.1.50/icecast/listener/remove/110"/>
</authentication>
</mount> |
All works fine and url authentication is working great.
There is only one occasion that the authentication url is not called and thats when Icecast decides to disconnect a stream due to a socket timeout.
When this occurs, the following error.log message is logged:
Code: |
[2014-08-31 16:52:55] WARN source/source_read Disconnecting /mount.ogg due to socket timeout |
If possible, I suggest that Icecast also calls the mount_remove authentication url in case of a socket timeout.
I hope that this can be added so it does so in a feature release.
Thanks! |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Sep 04, 2014 7:27 pm Post subject: |
|
|
can you let me know the version and contents of the error log for the case in question, I assume it's from a source client.
karl. |
|
Back to top |
|
|
sven
Joined: 09 Apr 2014 Posts: 34
|
Posted: Fri Sep 05, 2014 10:04 am Post subject: |
|
|
Icecast version:
Code: |
Icecast 2.3.3-kh10-20140624210919 |
As for the log entries, the only info about the was the part I posted ( from /var/log/icecast2/error.log):
Code: |
[2014-08-31 16:52:55] WARN source/source_read Disconnecting /mount.ogg due to socket timeout |
If you need more log info please let me know where i can find it and I will look it up for you.
Yes, it is the source client that gets disconnected by Icecast.
When Icecast disconnects them, it does not, or not always, call the mount_remove url, "http://192.168.1.50/icecast/mount/remove/11" in this case. |
|
Back to top |
|
|
|