Ricardo Meechan
2005-Aug-04 03:54 UTC
[Icecast] Problem? On-demand relay & max listeners redirect
I think this might be a problem: Say I have a master stream called /aac with 20 max listeners I also have a on-demand relay with (master-redirect) enabled. Now the plan is, when the master stream is full it would redirect to the slave stream (a 302), but the slave stream cannot connect to the master as its currently full. So somehow the icecast server has to allow the relay stream to connect (either by reserving a set amount of connections for relays, or by kicking off a current listener on that stream to allow the relay to... relay) Is this a current problem or have I configured something wrong? Regards. Ricardo Meechan IT Administrator Mobile: +44 (0) 7966 484 371 Wilson & Garden LTD t: +44 (0) 1236 823291 f: +44 (0) 1236 825683 Company registered in Scotland SC267457 NOTE: All emails to and from Wilson & Garden are protected by Antivirus and spam filters. We use Trend Scanmail for AV and spamhaus.org & spamcop.net for spam filtering. This message (and any associated files) is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Therefore, we do not accept responsibility for any errors or omissions that are present in this message, or any attachment, that have arisen as a result of e-mail transmission. If verification is required, please request a hard-copy version. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.
Karl Heyes
2005-Aug-04 07:51 UTC
[Icecast] Problem? On-demand relay & max listeners redirect
On Thu, 2005-08-04 at 11:54, Ricardo Meechan wrote:> I think this might be a problem: > > Say I have a master stream called /aac with 20 max listeners > > I also have a on-demand relay with (master-redirect) enabled. > > > Now the plan is, when the master stream is full it would redirect to the > slave stream (a 302), but the slave stream cannot connect to the master > as its currently full. > > So somehow the icecast server has to allow the relay stream to connect > (either by reserving a set amount of connections for relays, or by > kicking off a current listener on that stream to allow the relay to... > relay) > > Is this a current problem or have I configured something wrong?The 302 mechanism is really on the back burner for the moment, but the mechanism does allow for by-passing the max-listeners check if the master determines the connection to be a slave, which currently, is only done if :- . The slave <relay> has the <username>/<password> set to the whatever <relay-user>/relay-password> in the master is set to. . <master-relay-auth> is set to 1 so that <master-username> and <master-password> are automatically passed in the case of automatically defined relays This only applies to the -kh branch as it could do with updating. karl.