commit | 9cb8daa20364796816730d17aab86362b0686310 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Sep 15 21:22:24 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat Sep 19 14:53:47 2009 +0200 |
tree | 06740696d694857c86d06b48580b54243e0ef889 | |
parent | 91aa577b1f0483c50bfa72b3198cf1a1ff835163 [diff] |
[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.