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

MailImpl#writeContentTo leaks thread

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: James Core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: