summaryrefslogtreecommitdiffhomepage
path: root/test/python/restart/longstart.py
blob: 777398acc3d0cf6366d9668dd4a06ccc914c756e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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]