commit | 397826aedc75584e5a1f6e52a9ae4f2f4c1bd5a5 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@exceliance.fr> | Wed Mar 11 19:39:09 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Mar 11 19:55:10 2015 +0100 |
tree | 50959638a0aec7e96744a453d14a7909fe157173 | |
parent | 594afe76e4694d9faf281ae87f2d026506f7a9d9 [diff] |
MINOR: lua: replace function (req|get)_channel by a variable To add data in channel, it is necessary to process in two times. First time, get the channel object, and after send data: local req = txn:req_channel() req:send("data\n") Now, the function is converted as a variable containing the req and res aobject. We can process as following: txn.req:send("data\n")