summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-10-29 20:09:25 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2020-10-29 21:02:52 +0000
commit811622b672d4a4cf3d71fbd66810a66adf76826e (patch)
tree5b0be80bc4709245dc53f904caeae081f1eae251 /src
parent1c8faf8da3c98415164241b701202f3f62099e0d (diff)
Debug: show stalled send-data count on message-errors
Diffstat (limited to 'src')
-rw-r--r--src/src/transports/smtp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index a31982223..9e337e93f 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