commit | 03d60bbaf96b6e5c1e0a8a6abb6a145488464c58 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jan 09 11:13:00 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jan 09 11:14:39 2009 +0100 |
tree | 18aecf264cf5b1b195ff8d3846e6e60a7b7dda5a | |
parent | af78d0fdb614b3fcc811433a25555e1a5f084543 [diff] |
[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.