@never_cache
def stream(request, group):
    if not CONFIG.valid(group):
        response = http.HttpResponse()
        response.write("window.src = '/';\n")
        return response

    # Get all the active streaming severs for this channel
    active_servers = models.Endpoint.active(group=group)

    # Pick a server
    if active_servers:
        your_server = sorted(active_servers, key=lambda x: x.overall_bitrate)[0]
    else:
        your_server = None

    # Make sure this page isn't cached, otherwise the server load balancing won't work.
    return render(request, 'stream.js', locals(), content_type='text/javascript',
                  context_instance=template.RequestContext(request))
Send a signal to the pid
dataset/ETHPy150Open timvideos/streaming-system/website/tracker/views.py/stream--crossover with--dataset/ETHPy150Open benoitc/gaffer/gaffer/httpclient/process.py/Process.kill