| View previous topic :: View next topic |
| Author |
Message |
Y3K-Daniel
Joined: 24 Sep 2007 Posts: 9
|
Posted: Tue Aug 05, 2008 2:17 am Post subject: Fallback url auth |
|
|
I am wondering if the fallback is meant to trigger url auth, listener_remove, when a listener disconnects while they are in the fallback?
My script relies on IceCast telling it that they have disconnected or it will think they are still connected and will fail any future authentication request (listener_add) for that user. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 05, 2008 2:56 am Post subject: |
|
|
The listener_remove is not performed in such cases (until they finally disconnected the server). You can use the mount_remove to notify of a fallback. Whether the listener_add will fails any new attempts depends on what you have in your scripts.
karl. |
|
| Back to top |
|
 |
Y3K-Daniel
Joined: 24 Sep 2007 Posts: 9
|
Posted: Tue Aug 05, 2008 12:40 pm Post subject: |
|
|
What i mean is, listener_remove doesnt seem to be triggered when they disconnect from the fallback... meaning my scripts think they are still connected when they try to connect again.
(my script does reject based on mountpoint passed... but i have added the main mount name and fallback to allowed mountpoints - it works fine when they disconnect from the mount itself when its active just not if they drop from the fallback)
I have even sent a replica of the post string from the machine running icecast and the auth scripts work as expected so i can only assume that icecast isnt doing it. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 05, 2008 3:38 pm Post subject: |
|
|
The auth section is refcounted by the client details so that should apply. Maybe you could send the xml and a copy of the error log so that it can be verified.
karl. |
|
| Back to top |
|
 |
Y3K-Daniel
Joined: 24 Sep 2007 Posts: 9
|
Posted: Wed Aug 06, 2008 1:09 am Post subject: |
|
|
| karlH wrote: |
The auth section is refcounted by the client details so that should apply. Maybe you could send the xml and a copy of the error log so that it can be verified.
karl. |
You have mail
P.S. Having fallback setting removed, and trying to connect runs listener_add, succeeds, comes back with 404 as theres no source, but doesnt send listener_remove either... - I have worked around this by making the auth script fail auth if there is no source present for now until I know how to get fallback to send listener_remove and reinstate the fallback settings |
|
| Back to top |
|
 |
|