Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.0
-
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
}