karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Request: relay max-duration + and relay-reconnect #227

Open kalaverin opened 6 years ago

kalaverin commented 6 years ago

Hi there! I use complex logic with random stream urls on every backend request, I very need two small features:

  1. max-duration option for client connected to relay
  2. relay reconnect to source every N seconds option, if on-demand feature enable or not, if current source restreaming longer N seconds — reconnect to source url, follow redirect (if found) and relay to listeners

Thank you!

t0mtaylor commented 1 year ago

This would be great - currently you have to restart icecast to force the relay config to reconnect!

karlheyes commented 10 months ago

the retry-delay should be something like 120 by default but can be overridden on a per-relay basis. It should always be retrying that assuming the relay is not made inactive. The recent builds do allow for a source to override it. Killing the source will trigger a restart of the relay.

karl