From 30fe8189794114e66337e7ad5e167f386e57e257 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 1 May 2015 23:14:54 +0200 Subject: [PATCH] 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. --- include/types/proto_http.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/types/proto_http.h b/include/types/proto_http.h index 91245e991..3d170572c 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