From 68f71b94cc10f8b0453597d0f92b4bd7d995eeef Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 9 May 2020 15:04:17 +0100 Subject: [PATCH] Performance: workaround Linux kernel bug --- src/src/smtp_out.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/src/smtp_out.c b/src/src/smtp_out.c index 6f7fb85c1..86c3e4127 100644 --- a/src/src/smtp_out.c +++ b/src/src/smtp_out.c @@ -509,6 +509,16 @@ else 0 #endif ); + +#if defined(__linux__) + /* This is a workaround for a current linux kernel bug: as of + 5.6.8-200.fc31.x86_64 small (cctx->sock, IPPROTO_TCP, TCP_CORK, &off, sizeof(off)); +#endif } } -- 2.25.1