#!/usr/bin/env python ### ### This is a particularly brutal CGI; it takes 10 seconds to execute. ### It's to test race conditions, concurrency, etc. ### import time import sys print 'content-type: text/html' print print print '' print '' print 'ONE
'*10000 sys.stdout.flush() time.sleep(1) print 'TWO
'*10000 sys.stdout.flush() time.sleep(1) print 'THREE
'*10000 sys.stdout.flush() time.sleep(1) print 'FOUR
'*10000 sys.stdout.flush() time.sleep(1) print 'FIVE
'*10000 sys.stdout.flush() time.sleep(1) print 'DONE'*10000 print "" print ""