From: Willy Tarreau Date: Fri, 1 May 2015 21:14:54 +0000 (+0200) Subject: DOC: fix the comments about the meaning of msg->sol in HTTP X-Git-Tag: v1.6-dev2~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30fe8189794114e66337e7ad5e167f386e57e257;p=thirdparty%2Fhaproxy.git DOC: fix the comments about the meaning of msg->sol in HTTP 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. --- diff --git a/include/types/proto_http.h b/include/types/proto_http.h index 91245e991a..3d170572c4 100644 --- a/include/types/proto_http.h +++ b/include/types/proto_http.h @@ -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