]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: hlua: Make sure we drain the output buffer when done.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 28 Aug 2018 12:41:31 +0000 (14:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Aug 2018 14:18:34 +0000 (16:18 +0200)
commit594c8c5015abb0d0c0a8d41fea573a2bcd63a351
tree9277d80c0a3bb9e27884ac8e73923e5384532acb
parent155e93e570f35196b6ad43e2f7798d1b5d3a2c04
BUG/MEDIUM: hlua: Make sure we drain the output buffer when done.

In hlua_applet_tcp_fct(), drain the output buffer when the applet is done
running, every time we're called.
Overwise, there's a race condition, and the output buffer could be filled
after the applet ran, and as it is never cleared, the stream interface
will never be destroyed.

This should be backported to 1.8 and 1.7.
src/hlua.c