Currently stage40 plugins are only run once monkey has no pending data to
send, and they are only call once. A plugin may want to send some more data
again in the next cycle. They can specify if they have more data to send by
returning MK_PLUGIN_RET_CONTINUE and return MK_PLUGIN_RET_END to go to the
next stage. I have attached a simple patch that implements this. What do
you guys think?


My use case with the cache plugin was that I had to take over the request
if its a cache hit, and want to send data without blocking, so I can take
over the socket in stage 30 but that doesnt work well with pipelined
requests that monkey handles pretty nicely. So I tried to send data in
STAGE40 but its only called once and this patch fixes that.

hamza

Attachment: 0001-Run-STAGE40-plugins-if-they-have-more-pending-data.patch
Description: Binary data

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to