mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 12:10:46 +00:00
haproxy public development tree
7deff246ce
Now that we know what pollers can return ERR/HUP, we can take this into account to save one syscall: with such a poller, if neither are reported, then we know the connection succeeded and we don't need to go with getsockopt() nor connect() to validate this. In addition, for the remaining cases (select() or suspected errors), we'll always go through the extra connect() attempt and enumerate possible "in progress", "connected" or "failed" status codes and take action solely based on this. This results in one saved syscall on modern pollers, only a second connect() still being used on select() and the server's address never being needed anymore. Note that we cannot safely replace connect() with getsockopt() as the latter clears the error on the socket without saving it, and health checks rely on it for their reporting. This would be OK if the error was saved in the connection itself. |
||
---|---|---|
.github/ISSUE_TEMPLATE | ||
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)