Use single TCP segment for SMTP, TLS and TCP closes.
[exim.git] / src / src / smtp_in.c
index a238ae261dc3f1f077ebfb079601c6fbe9a0a5ef..b071298c73d6e79f5601a9b641f7db32caa5b6c7 100644 (file)
@@ -3822,6 +3822,11 @@ if (acl_smtp_quit)
     log_write(0, LOG_MAIN|LOG_PANIC, "ACL for QUIT returned ERROR: %s",
       *log_msgp);
   }
+
+#ifdef TCP_CORK
+(void) setsockopt(fileno(smtp_out), IPPROTO_TCP, TCP_CORK, US &on, sizeof(on));
+#endif
+
 if (*user_msgp)
   smtp_respond(US"221", 3, TRUE, *user_msgp);
 else