]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: Fix the sending function in Lua's cosocket
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Dec 2016 08:29:06 +0000 (09:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 14:22:08 +0000 (15:22 +0100)
commit33834b15dce4658ee98fa85668162d78abf32e18
tree2871d9cb871dace6a8162691c5f333e9b402448a
parent6e413ed1ed33e65740bfa1f209383252eb472256
BUG/MINOR: Fix the sending function in Lua's cosocket

This is a regression from the commit a73e59b6901a164d19b1145e8511602d9814f28f.

When data are sent from a cosocket, the action is done in the context of the
applet running a lua stack and not in the context of the applet owning the
cosocket. So we must take care, explicitly, that this last applet have a buffer
(the req buffer of the cosocket).

This patch must be backported in 1.7
src/hlua.c