mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-03 10:01:27 +00:00
haproxy public development tree
For each and every argument parsed by make_arg_list(), there was an strndup() call, just so that we have a trailing zero for most functions, and this temporary buffer is released afterwards except for strings where it is kept. Proceeding like this is not convenient because 1) it performs a huge malloc/free dance, and 2) it forces to decide upfront where the argument ends, which is what prevents commas and right parenthesis from being used. This patch makes the function copy the temporary argument into the trash instead, so that we avoid the malloc/free dance for most all non-string args (e.g. integers, addresses, time, size etc), and that we can later produce the contents on the fly while parsing the input. It adds a length check to make sure that the argument is not longer than the buffer size, which should obviously never be the case but who knows what people put in their configuration. |
||
---|---|---|
.github | ||
contrib | ||
doc | ||
ebtree | ||
examples | ||
include | ||
reg-tests | ||
scripts | ||
src | ||
tests | ||
.cirrus.yml | ||
.gitignore | ||
.travis.yml | ||
BRANCHES | ||
CHANGELOG | ||
CONTRIBUTING | ||
INSTALL | ||
LICENSE | ||
MAINTAINERS | ||
Makefile | ||
README | ||
ROADMAP | ||
SUBVERS | ||
VERDATE | ||
VERSION |
The HAProxy documentation has been split into a number of different files for ease of use. Please refer to the following files depending on what you're looking for : - INSTALL for instructions on how to build and install HAProxy - BRANCHES to understand the project's life cycle and what version to use - LICENSE for the project's license - CONTRIBUTING for the process to follow to submit contributions The more detailed documentation is located into the doc/ directory : - doc/intro.txt for a quick introduction on HAProxy - doc/configuration.txt for the configuration's reference manual - doc/lua.txt for the Lua's reference manual - doc/SPOE.txt for how to use the SPOE engine - doc/network-namespaces.txt for how to use network namespaces under Linux - doc/management.txt for the management guide - doc/regression-testing.txt for how to use the regression testing suite - doc/peers.txt for the peers protocol reference - doc/coding-style.txt for how to adopt HAProxy's coding style - doc/internals for developer-specific documentation (not all up to date)