X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/97cfe3942f67200f77f6ae9b302409075e4e5792..2130e492c2cda886d74abbb77df4493f151e0a44:/src/src/daemon.c?ds=sidebyside diff --git a/src/src/daemon.c b/src/src/daemon.c index 21807f64f..1006961d3 100644 --- a/src/src/daemon.c +++ b/src/src/daemon.c @@ -2431,6 +2431,11 @@ for (;;) if (accept_socket >= 0) { +#ifdef TCP_QUICKACK /* Avoid pure-ACKs while in tls protocol pingpong phase */ + /* Unfortunately we cannot be certain to do this before a TLS-on-connect + Client Hello arrives and is acked. We do it as early as possible. */ + (void) setsockopt(accept_socket, IPPROTO_TCP, TCP_QUICKACK, US &off, sizeof(off)); +#endif if (inetd_wait_timeout) last_connection_time = time(NULL); handle_smtp_call(listen_sockets, listen_socket_count, accept_socket,