def app(environ, start_response):
    data = b'Hello, World!\n'
    status = '200 OK'
    response_headers = [
        ('Content-type', 'text/plain'),
        ('Transfer-Encoding', "chunked"),
    ]
    sys.stdout.write('request received')
    sys.stdout.flush()
    start_response(status, response_headers)
    return TestIter()
Application which cooperatively pauses 20 seconds (needed to surpass normal timeouts) before responding
dataset/ETHPy150Open benoitc/gunicorn/examples/longpoll.py/app