commit | e393fe224bd90640dbc967f28c2872441f1e3f48 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Aug 16 22:18:07 2008 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat Aug 16 22:18:07 2008 +0200 |
tree | 1405216114ba0dba79ed0dcd5cc5fa8d37062b76 | |
parent | ba392cecf9537ab6ab224af033a663ffd9be1a87 [diff] |
[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.