mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 07:24:32 +00:00
BUG/MINOR: hlua: Don't use channel_htx_recv_max()
The function htx_free_data_space() must be used intead. Otherwise, if there are some output data not already forwarded, the maximum amount of data that may be inserted into the buffer may be greater than what we can really insert. This patch must be backported to 2.0 and 1.9.
This commit is contained in:
parent
e6cdfe574e
commit
7e145b3e24
@ -4555,7 +4555,7 @@ __LJMP static int hlua_applet_htx_send_yield(lua_State *L, int status, lua_KCont
|
||||
int l = MAY_LJMP(luaL_checkinteger(L, 3));
|
||||
int max;
|
||||
|
||||
max = channel_htx_recv_max(res, htx);
|
||||
max = htx_free_data_space(htx);
|
||||
if (!max)
|
||||
goto snd_yield;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user