mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 21:31:28 +02:00
Historically, we used the internal peer proxy as stream target, because then we only cared about initiating a basic tcp connection with the endpoint, and relying on parent proxy settings was enough. But later, we introduced the possibility to connect to an SSL peer by taking server's SSL parameters into acount. This was done in commit 1055e687 ("MINOR: peers: Make outgoing connection to SSL/TLS peers work.") However, the above commit introduced an ambiguity: peer_session_target() function was introduced, and the function will either return the peers proxy's object or the current server's object depending if ssl is configured or not. While this works fine to ensure proper SSL handling while being conservative with historical behavior, this cause other server transport related settings to only work when ssl settings are provided, which is quite debatable. Indeed, while we're there, why not always using the server's object as a stream target, to ensure all transport related options are properly handled? Moreover, the peers documentation tells this: ... "support for all "server" parameters found in 5.2 paragraph that are related to transport settings" ... To remove the ambiguity and fully comply with the documentation, we make peer_session_target() always return the server's object.
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)
Description
Languages
C
98.1%
Shell
0.8%
Makefile
0.5%
Lua
0.2%
Python
0.2%