]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: http: make it more obvious that msg->som is always null outside of chunks
authorWilly Tarreau <w@1wt.eu>
Fri, 18 May 2012 21:04:32 +0000 (23:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 May 2012 21:04:32 +0000 (23:04 +0200)
commit06a000f56e6fdfd229a1f948863b17bca07ddcbb
tree28a9dc9263e73f0d6fe37bf32c7b8827176f8c32
parent09d1e254c9b96300e425d0a99a162618cab12c38
CLEANUP: http: make it more obvious that msg->som is always null outside of chunks

Since the recent buffer reorg, msg->som is redundant with buf->p but still
appears at a number of places. This tiny patch allows to confirm that som
follows two states :
  - 0 from the moment the message starts to be parsed
  - relative offset to ->p for start of chunk when parsing chunks

During this second state, ->sol is never used, so we should probably merge
the two.
src/backend.c
src/proto_http.c