summaryrefslogtreecommitdiffhomepage
path: root/test/python/restart/longstart.py
blob: 3bc383b7dbe361d3bbc760539be7b33622c30478 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import os
import time

time.sleep(2)


def application(environ, start_response):
    body = str(os.getpid()).encode()

    start_response('200', [('Content-Length', str(len(body)))])
    return [body]