commit | 192c6a23d48a0b4393885207221aebca82ff7609 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Jun 11 16:32:24 2019 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Jul 19 09:18:27 2019 +0200 |
tree | 9390f4253a425110d7f070cdb287cda0d8532bff | |
parent | 5a916f73266953031252bbeb33cbe01995d3e1fd [diff] |
MINOR: htx: Deduce the number of used blocks from tail and head values <head> and <tail> fields are now signed 32-bits integers. For an empty HTX message, these fields are set to -1. So the field <used> is now useless and can safely be removed. To know if an HTX message is empty or not, we just compare <head> against -1 (it also works with <tail>). The function htx_nbblks() has been added to get the number of used blocks.