[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-1113) ServerInvokerCallbackHandlers leak when client doesn't shut down

Ron Sigal (JIRA) jira-events at lists.jboss.org
Mon Apr 13 06:37:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBREM-1113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12461761#action_12461761 ] 

Ron Sigal commented on JBREM-1113:
----------------------------------

Added ServerInvokerCallbackHandler.shutdown() which (1) calls ServerInvoker.shutdownCallbackHandler() to remove references from ServerInvoker and (2) calls ServerInvokerCallbackHandler.destroy().

Unit tests: org.jboss.test.remoting.callback.leak.ServerInvokerCallbackHandlerLeakTestCase.

Waiting for results in hudson.

> ServerInvokerCallbackHandlers leak when client doesn't shut down 
> -----------------------------------------------------------------
>
>                 Key: JBREM-1113
>                 URL: https://jira.jboss.org/jira/browse/JBREM-1113
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.5.0.SP2 (Flounder) , 2.2.2.SP11
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>             Fix For: 2.5.0.SP3 (Flounder), 2.2.2.SP12
>
>
> 1. a. org.jboss.remoting.callback.ServerInvokerCallbackHandler is referenced by org.jboss.remoting.ServerInvoker and by the org.jboss.remoting.ConnectionNotifier, if any, created by ServerInvoker.
>      b. ServerInvokerCallbackHandler is passed to org.jboss.remoting.ServerInvocationHandler.addListener(), so the application ServerInvocationHandler could also maintain a pointer to ServerInvokerCallbackHandler.
> If the application calls org.jboss.remoting.Client.removeListener(), then ServerInvoker will clean up its references to ServerInvokerCallbackHandler, and it will call ServerInvocationHandler.removeListener(), giving the application a chance to remove the reference it holds.
> However, if the connection from the client breaks, none of these things happen.
> 2. There needs to be a ServerInvokerCallbackHandler method that can be called by the application, by, for example, a ConnectionListener, which will cause the references to be removed by ServerInvoker and the applications ServerInvocationHandler.

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

        



More information about the jboss-remoting-issues mailing list