mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-29 12:43:56 +00:00
13 lines
229 B
Python
13 lines
229 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"
|
|
|