]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: buffer: replace buf->l with buf->{o+i}
authorWilly Tarreau <w@1wt.eu>
Thu, 1 Mar 2012 17:19:58 +0000 (18:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 10:28:10 +0000 (12:28 +0200)
commit02d6cfc1d790816f455e7898df8874fb58bc327a
treee550ec46df93b303cfdad7c2aa0c455b4252eba5
parent2e046c60179ac310e11fa0f9c0da76e94ae28461
MAJOR: buffer: replace buf->l with buf->{o+i}

We don't have buf->l anymore. We have buf->i for pending data and
the total length is retrieved by adding buf->o. Some computation
already become simpler.

Despite extreme care, bugs are not excluded.

It's worth noting that msg->err_pos as set by HTTP request/response
analysers becomes relative to pending data and not to the beginning
of the buffer. This has not been completed yet so differences might
occur when outgoing data are left in the buffer.
include/proto/buffers.h
include/types/buffers.h
src/acl.c
src/backend.c
src/buffers.c
src/dumpstats.c
src/frontend.c
src/proto_http.c
src/proto_tcp.c
src/session.c
src/stream_sock.c