Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (25 sloc) 0.584 kB
import time
import sys
def application(e, sr):
time.sleep(3)
print("3 seconds elapsed")
sr('200 Ok', [('Content-Type', 'text/html')])
time.sleep(2)
print("2 seconds elapsed")
yield "part1"
try:
time.sleep(2)
except:
print("CLIENT DISCONNECTED !!!")
print("2 seconds elapsed")
yield "part2"
try:
time.sleep(2)
except:
print("CLIENT DISCONNECTED !!!")
print("2 seconds elapsed")
yield "part3"
time.sleep(2)
print("2 seconds elapsed")
yield "part4"
print("end of request")
Jump to Line
Something went wrong with that request. Please try again.