mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-15 18:05:50 +00:00
14 lines
232 B
Python
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"
|