[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-dev
Subject:    [jira] Resolved: (JAMES-430) MailImpl#writeContentTo leaks thread
From:       "Stefano Bagnara (JIRA)" <server-dev () james ! apache ! org>
Date:       2005-12-30 10:30:03
Message-ID: 1733525732.1135938603086.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

     [ http://issues.apache.org/jira/browse/JAMES-430?page=all ]
     
Stefano Bagnara resolved JAMES-430:
-----------------------------------

    Fix Version: 2.3.0
     Resolution: Fixed

the method was moved to POP3Handler and fixed.
AbstractRedirect fixed too (try/catch/finally was in the wrong place)

> 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
> Fix For: 2.3.0

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic