Gitweb:
https://git.exim.org/exim.git/commitdiff/811622b672d4a4cf3d71fbd66810a66adf76826e
Commit: 811622b672d4a4cf3d71fbd66810a66adf76826e
Parent: 1c8faf8da3c98415164241b701202f3f62099e0d
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Oct 29 20:09:25 2020 +0000
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Oct 29 21:02:52 2020 +0000
Debug: show stalled send-data count on message-errors
---
src/src/transports/smtp.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index a319822..9e337e9 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -4134,6 +4134,13 @@ if (!sx->ok)
*message_defer = TRUE;
}
+
+ DEBUG(D_transport) if (sx->cctx.sock >= 0)
+ {
+ int n;
+ if (ioctl(sx->cctx.sock, TIOCOUTQ, &n) == 0)
+ debug_printf("%d bytes remain in socket output buffer\n", n);
+ }
}
/* Otherwise, we have an I/O error or a timeout other than after MAIL or