git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c8faf8
)
Debug: show stalled send-data count on message-errors
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 29 Oct 2020 20:09:25 +0000
(20:09 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 29 Oct 2020 21:02:52 +0000
(21:02 +0000)
src/src/transports/smtp.c
patch
|
blob
|
history
diff --git
a/src/src/transports/smtp.c
b/src/src/transports/smtp.c
index a31982223452e21d68568ae336ac5203a2f73483..9e337e93f8d65bc22042f6e639a418896750c607 100644
(file)
--- 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