2013-12-15 01:43:16 +00:00
|
|
|
import time
|
|
|
|
from libmproxy.script import concurrent
|
|
|
|
|
2014-09-05 13:16:20 +00:00
|
|
|
|
2014-09-08 14:02:31 +00:00
|
|
|
@concurrent # Remove this and see what happens
|
2013-12-15 01:43:16 +00:00
|
|
|
def request(context, flow):
|
2015-05-30 03:17:48 +00:00
|
|
|
print("handle request: %s%s" % (flow.request.host, flow.request.path))
|
2013-12-15 01:43:16 +00:00
|
|
|
time.sleep(5)
|
2015-05-30 03:17:48 +00:00
|
|
|
print("start request: %s%s" % (flow.request.host, flow.request.path))
|