shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bflueras <flueras.bog...@gmail.com>
Subject Re: [jira] [Created] (SHIRO-399) Memory leak for invalid sessions
Date Mon, 26 Nov 2012 11:53:17 GMT
Hi,
See below some code on how to reproduce it.
public class MySessionListener implements SessionListener {
    @Override
    public void onStart(Session session) {
    }

    @Override
    public void onStop(Session session) {
       //Throws exception which prevents normal flow after, the session
object in not deleted in sessionDAO
        session.removeAttribute(validAttribute); 
    }

    @Override
    public void onExpiration(Session session) {
           //Throws exception which prevents normal flow after, the session
object in not deleted in sessionDAO
           session.removeAttribute(validAttribute); //Throws exception which
prevents normal flow after
    }
}

I would like to fix this bug and enclose some code within try/finally
blocks.
WDYT?



--
View this message in context: http://shiro-developer.582600.n2.nabble.com/jira-Created-SHIRO-399-Memory-leak-for-invalid-sessions-tp7577746p7577747.html
Sent from the Shiro Developer mailing list archive at Nabble.com.

Mime
View raw message