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:
Willy Tarreau 2012-09-03 22:33:40 +02:00
parent 7444f01ede
commit fbac6638c1

View File

@ -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;