[MINOR] buffers: add buffer_cut_tail() to cut only unsent data
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2009 19:22:24 +0000 (21:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Sep 2009 12:53:47 +0000 (14:53 +0200)
commit9cb8daa20364796816730d17aab86362b0686310
tree06740696d694857c86d06b48580b54243e0ef889
parent91aa577b1f0483c50bfa72b3198cf1a1ff835163
[MINOR] buffers: add buffer_cut_tail() to cut only unsent data

This function is used to cut the "tail" of a buffer, which means strip it
to the length of unsent data only, and kill any remaining unsent data. Any
scheduled forwarding is stopped. This is mainly to be used to send error
messages after existing data. It does the same as buffer_erase() for buffers
without pending outgoing data.
include/proto/buffers.h