Permalink
Browse files

fix on the defer test sample

  • Loading branch information...
william-os4y committed Jul 30, 2010
1 parent 21d17df commit 1a119459d3f823c1a6d89480d77ad90f4b7771c4
Showing with 2 additions and 2 deletions.
  1. +2 −2 sample/defer/test.py
View
@@ -10,11 +10,11 @@ def toto(v):
global count
time.sleep(v)
count+=1
- print "defer sleep %s, counter %s" % (v,0)
+ print "defer sleep %s, counter %s, %s" % (v,count,evwsgi.defer_queue_size())
def application(environ, start_response):
response_headers = [('Content-type', 'text/plain')]
- start_response(status, response_headers)
+ start_response('200 OK', response_headers)
print "before defer", time.time()
evwsgi.defer(toto, 0.2, False)
#evwsgi.defer(toto, 1, True)

0 comments on commit 1a11945

Please sign in to comment.