]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: fix the comments about the meaning of msg->sol in HTTP
authorWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 21:14:54 +0000 (23:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 21:24:31 +0000 (23:24 +0200)
It has a meaning while parsing a body when using chunked encoding.
This must be backported to 1.5 since it caused a bug there as well.

include/types/proto_http.h

index 91245e991a186ee3d0873a24210cc5a103f8c77a..3d170572c494abba5f1269b7a1db5b9e3fab6c11 100644 (file)
@@ -359,7 +359,11 @@ enum {
  *  - next (parse pointer)   : next relative byte to be parsed. Always points
  *                             to a byte matching the current state.
  *
- *  - sol (start of line)    : start of current line before MSG_BODY, or zero.
+ *  - sol (start of line)    : start of current line before MSG_BODY. Starting
+ *                             from MSG_BODY, contains the length of the last
+ *                             parsed chunk size so that when added to sov it
+ *                             always points to the beginning of the current
+ *                             data chunk.
  *
  *  - eol (End of Line)      : Before HTTP_MSG_BODY, relative offset in the
  *                             buffer of the first byte which marks the end of