mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-14 15:31:00 +01: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 @@ out_uri_auth_compat:
|
|||||||
|
|
||||||
/* smart accept mode is automatic in HTTP mode */
|
/* smart accept mode is automatic in HTTP mode */
|
||||||
if ((curproxy->options2 & PR_O2_SMARTACC) ||
|
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)))
|
!(curproxy->no_options2 & PR_O2_SMARTACC)))
|
||||||
listener->options |= LI_O_NOQUICKACK;
|
listener->options |= LI_O_NOQUICKACK;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user