]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: socket destroy before reading pending data
authorThierry FOURNIER <tfournier@arpalert.org>
Sun, 27 Sep 2015 17:29:38 +0000 (19:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Sep 2015 19:50:26 +0000 (21:50 +0200)
commit6d695e6314ffcf96ebd493d38835b9bd4db90f71
treeff5842824b636a0b700319d5e6cb0e2d60a736d5
parent8c8fbbe10343bf0053198726523df65d8f4029bf
BUG/MEDIUM: lua: socket destroy before reading pending data

When the channel is down, the applet is waked up. Before this patch,
the applet closes the stream and the unread data are discarded.

After this patch, the stream is not closed except if the buffers are
empty.

It will be closed later by the close function, or by the garbage collector.
src/hlua.c