]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] buffers: add BF_EMPTY and BF_FULL to remove dependency on req/rep->l
authorWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 20:18:07 +0000 (22:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 20:18:07 +0000 (22:18 +0200)
commite393fe224bd90640dbc967f28c2872441f1e3f48
tree1405216114ba0dba79ed0dcd5cc5fa8d37062b76
parentba392cecf9537ab6ab224af033a663ffd9be1a87
[MEDIUM] buffers: add BF_EMPTY and BF_FULL to remove dependency on req/rep->l

It is not always convenient to run checks on req->l in functions to
check if a buffer is empty or full. Now the stream_sock functions
set flags BF_EMPTY and BF_FULL according to the buffer contents. Of
course, functions which touch the buffer contents adjust the flags
too.
include/proto/buffers.h
include/types/buffers.h
src/buffers.c
src/client.c
src/proto_http.c
src/proto_uxst.c
src/senddata.c
src/stream_sock.c