]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: http: change msg->{som,col,sov,eoh} to be relative to buffer origin
authorWilly Tarreau <w@1wt.eu>
Mon, 5 Mar 2012 14:52:30 +0000 (15:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 10:28:11 +0000 (12:28 +0200)
commitea1175a687eff6800928549488caf9398206479f
tree75e4a219f2d6b45a28f2ce0af88871cb3b1cd910
parenta458b679652d21ee39cb6b9edd12cb7c38aff32c
MAJOR: http: change msg->{som,col,sov,eoh} to be relative to buffer origin

These offsets were relative to the buffer itself. Now they're relative to
the buffer's origin (buf->p) which normally corresponds to the start of
current message.

This saves a big dependency between the HTTP message struct and the buffers.
It appeared during this change that ->col is not used anymore (it will have
to be removed). Next step is to turn ->eol and ->sol from absolute to relative.
include/types/proto_http.h
src/backend.c
src/proto_http.c