Files
2015-04-11 22:50:11 +10:00

14 lines
232 B
Python

import time
import uwsgi
def application(e, s):
print "locking"
uwsgi.lock()
print "locked"
time.sleep(3)
uwsgi.unlock()
print "UN-locked"
s('200 OK', [('Content-Type', 'text/html')])
return "slow"