MINOR: buffer: b_set_data() doesn't truncate output data anymore
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Jul 2018 09:43:36 +0000 (11:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:43 +0000 (16:23 +0200)
commitf6dfd88a92388823258efbf858fc3a2db7fa7bd3
tree21fdd95e378560ce7561e4141fad6b726ca0b5a2
parentabed1e7f34aafa75c89f6ff3d2eecce29f800db0
MINOR: buffer: b_set_data() doesn't truncate output data anymore

b_set_data() is used :
  - in proto_http and hlua to trim input data (b_set_data(co_data()))
  - in SPOE to append data to a buffer while building a message

In no case will this truncate a buffer so we can safely remove the
test for len < b->output.
include/common/buf.h