mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
MINOR: ssl: disable TCP quick-ack by default on SSL listeners
Since the SSL handshake involves an immediate reply from the server to the client, there's no point responding with a quick-ack before sending the data, so disable quick-ack by default, just as it is done for HTTP. This shows a 2-2.5% transaction rate increase on a dual-core atom.
This commit is contained in:
parent
7444f01ede
commit
fbac6638c1
@ -6740,7 +6740,7 @@ int check_config_validity()
|
||||
|
||||
/* smart accept mode is automatic in HTTP mode */
|
||||
if ((curproxy->options2 & PR_O2_SMARTACC) ||
|
||||
(curproxy->mode == PR_MODE_HTTP &&
|
||||
((curproxy->mode == PR_MODE_HTTP || listener->ssl_cert) &&
|
||||
!(curproxy->no_options2 & PR_O2_SMARTACC)))
|
||||
listener->options |= LI_O_NOQUICKACK;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user