Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-430

MailImpl#writeContentTo leaks thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • James Core
    • None

    Description

      MailImpl#writeContentTo(OutputStream, int) (used by POP3 TOP) does not close the input stream acquired from its MimeMessage. MimeMessage#getInputStream is a PipedInputStream and has a thread running on its behalf. Thus, MailImpl leaks a thread per
      message TOPed.

      Fix:
      in = message.getInputStream();
      try {
      ...
      } finally {
      in.close
      }

      Attachments

        Activity

          People

            bago Stefano Bagnara
            mernst Matthias Ernst
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: