]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] buffer: replace rlim by max_len
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 10:13:00 +0000 (11:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 10:14:39 +0000 (11:14 +0100)
commit03d60bbaf96b6e5c1e0a8a6abb6a145488464c58
tree18aecf264cf5b1b195ff8d3846e6e60a7b7dda5a
parentaf78d0fdb614b3fcc811433a25555e1a5f084543
[OPTIM] buffer: replace rlim by max_len

In the buffers, the read limit used to leave some place for header
rewriting was set by a pointer to the end of the buffer. Not only
this required subtracts at every place in the code, but this will
also soon not be usable anymore when we want to support keepalive.

Let's replace this with a length limit, comparable to the buffer's
length. This has also sightly reduced the code size.
include/proto/buffers.h
include/types/buffers.h
src/backend.c
src/buffers.c
src/client.c
src/proto_tcp.c
src/stream_sock.c