mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 07:24:32 +00:00
BUG/MINOR: hlua/htx: Respect the reserve when HTX data are sent
The previous commit 7e145b3e2
("BUG/MINOR: hlua: Don't use
channel_htx_recv_max()") is buggy. The buffer's reserve must be respected.
This patch must be backported to 2.0 and 1.9.
This commit is contained in:
parent
621da6bafa
commit
9060fc02b5
@ -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 = htx_free_data_space(htx);
|
||||
max = htx_get_max_blksz(htx, channel_htx_recv_max(res, htx));
|
||||
if (!max)
|
||||
goto snd_yield;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user