FreeAndNil opened a new issue, #370:
URL: https://github.com/apache/logging-log4net/issues/370
`TelnetAppender`, `RemoteSyslogAppender` and the `SmtpAppender` of
`log4net.Ext.Mail` hand events to
a background sender. When its queue is full (a stuck send, a Telnet client
that stops reading):
- Every event waits the full `EnqueueTimeoutMillis` again, inside the
appender lock, before it is
dropped. With 16 threads, about 800 ms per logging call; a 513-event flush
of a
`BufferingForwardingAppender` takes 25 s. The docs promise one bounded
wait. Since 3.5.0.
ANT-2026-M13HDM0A.
- Closing the appender reports "N logging event(s) were not sent" twice:
`Close` reports it, then
`Dispose` closes again. `OnlyOnceErrorHandler` hides the second one. Since
3.5.0.
Proposed fix: after an enqueue timed out, the sender drops further events at
once, counting and
reporting them as today, until a send succeeds. The close summary is
reported again only when the
count grew.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]