[MEDIUM] stream_interface: make use of buffer_cut_tail() to report errors
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2009 19:23:54 +0000 (21:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Sep 2009 12:53:47 +0000 (14:53 +0200)
commitcb359e3f3cf6d3334d2d07613a374c8d0cd470ae
treedaa3486d247e56f19be4f29ec1ed6fa98f927ed6
parent9cb8daa20364796816730d17aab86362b0686310
[MEDIUM] stream_interface: make use of buffer_cut_tail() to report errors

The stream_int_return() function used to call buffer_erase() on the response
buffer, which completely wipes it without taking care about whatever could
have been there. Now we more carefully strip only data not scheduled to be
sent.
src/stream_interface.c