fix #341 - work on flows instead of request/response internally.

This commit is contained in:
Maximilian Hils
2014-09-03 16:57:56 +02:00
parent 951a6fcc36
commit b0cfeff06d
20 changed files with 463 additions and 531 deletions

View File

@@ -16,16 +16,16 @@ class MyMaster(flow.FlowMaster):
except KeyboardInterrupt:
self.shutdown()
def handle_request(self, r):
f = flow.FlowMaster.handle_request(self, r)
def handle_request(self, f):
f = flow.FlowMaster.handle_request(self, f)
if f:
r.reply()
f.reply()
return f
def handle_response(self, r):
f = flow.FlowMaster.handle_response(self, r)
def handle_response(self, f):
f = flow.FlowMaster.handle_response(self, f)
if f:
r.reply()
f.reply()
print f
return f