]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: Don't use channel_htx_recv_max()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jul 2019 19:29:43 +0000 (21:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Jul 2019 19:32:45 +0000 (21:32 +0200)
commit7e145b3e240b6c018016b217f0348a255ffda292
tree0eda521484a42129878ba002cd0bfc89265c8e73
parente6cdfe574e2befca8252b320d7415485b985ba56
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.
src/hlua.c