Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-516

Slow email servers can cause SmtpAppender to slow down any system using it

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.15
    • Fix Version/s: None
    • Component/s: Appenders
    • Environment:
      Windows 7 & 10

      Description

      When using log4net with an SmtpAppender if the email server that the messages are going to is under an excessive load and the messages back up all of the Log4Net logging slows down and makes the system unusable.

      It seems like exposing the timeout value on the SmtpClient as a configurable option would allow code to continue, even if it does drop an email request. Otherwise the logging system can bring the system to a standstill. The default Timeout for SmtpClient is 100 sec.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dfs_dev john weidman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: