[exim-cvs] BSD: avoid delay on continued-connection

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] BSD: avoid delay on continued-connection
Gitweb: https://git.exim.org/exim.git/commitdiff/80acfd092b5f785bd971dcf911b4fe7aec9faaa2
Commit:     80acfd092b5f785bd971dcf911b4fe7aec9faaa2
Parent:     90c2ddb98a7ae6ce99fb8f6312abbe34b7f561ba
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Jan 4 17:59:23 2021 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jan 4 17:59:23 2021 +0000


    BSD: avoid delay on continued-connection


    Broken-by: 6454662ecb
---
 src/src/transports/smtp.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index 8f42871..2a600d4 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -4393,10 +4393,13 @@ This change is being made on 31-Jul-98. After over a year of trouble-free
operation, the old commented-out code was removed on 17-Sep-99. */

SEND_QUIT:
+if (sx->send_quit)
+ {
#ifdef EXIM_TCP_CORK
-(void) setsockopt(sx->cctx.sock, IPPROTO_TCP, EXIM_TCP_CORK, US &on, sizeof(on));
+ (void) setsockopt(sx->cctx.sock, IPPROTO_TCP, EXIM_TCP_CORK, US &on, sizeof(on));
#endif
-if (sx->send_quit) (void)smtp_write_command(sx, SCMD_FLUSH, "QUIT\r\n");
+ (void)smtp_write_command(sx, SCMD_FLUSH, "QUIT\r\n");
+ }

END_OFF: