]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: buffers: replace buf->w with buf->p - buf->o
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Mar 2012 15:13:16 +0000 (16:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 10:28:10 +0000 (12:28 +0200)
commit89fa706d3986acabf9391277862f8f1ee6f8bd98
tree986b451bc7cd3a818eb7bc6505b7f087efb87167
parent3f7ff1406c6172e8feff64e254fcacfe99beca92
MAJOR: buffers: replace buf->w with buf->p - buf->o

This change introduces the buffer's base pointer, which is the limit between
incoming and outgoing data. It's the point where the parsing should start
from. A number of computations have already been greatly simplified, but
more simplifications are expected to come from the removal of buf->r.

The changes appear good and have revealed occasional improper use of some
pointers. It is possible that this patch has introduced bugs or revealed
some, although preliminary testings tend to indicate that everything still
works as it should.
include/proto/buffers.h
include/types/buffers.h
src/acl.c
src/buffers.c
src/dumpstats.c
src/proto_http.c
src/proto_tcp.c
src/stream_sock.c