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 

Not calling mount_remove auth url on socket timeout

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



Joined: 09 Apr 2014
Posts: 34

PostPosted: Thu Sep 04, 2014 10:47 am    Post subject: Not calling mount_remove auth url on socket timeout Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Sep 04, 2014 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sven



Joined: 09 Apr 2014
Posts: 34

PostPosted: Fri Sep 05, 2014 10:04 am    Post subject: Reply with quote

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
View user's profile Send private message
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