james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JAMES-430) MailImpl#writeContentTo leaks thread
Date Fri, 30 Dec 2005 10:08:03 GMT
    [ http://issues.apache.org/jira/browse/JAMES-430?page=comments#action_12361411 ] 

Stefano Bagnara commented on JAMES-430:
---------------------------------------

Maybe we have the same problem in AbstractRedirect, too.

> MailImpl#writeContentTo leaks thread
> ------------------------------------
>
>          Key: JAMES-430
>          URL: http://issues.apache.org/jira/browse/JAMES-430
>      Project: James
>         Type: Bug
>   Components: James Core
>     Versions: 2.2.0
>     Reporter: Matthias Ernst
>     Assignee: Stefano Bagnara

>
> 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
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message