[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-1257) InboundClient should not be removed while a request is in progress

Ron Sigal (JIRA) jira-events at lists.jboss.org
Wed Oct 27 16:02:54 EDT 2010


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

Ron Sigal commented on JBREM-1257:
----------------------------------

>From David Lloyd:

The inbound (and outbound for that matter) clients tables need to be multi-state and have a shutdown phase (just like a TCP socket can be half-closed).  This way outstanding requests can complete but new requests would be rejected for the interim time period.

> InboundClient should not be removed while a request is in progress
> ------------------------------------------------------------------
>
>                 Key: JBREM-1257
>                 URL: https://jira.jboss.org/browse/JBREM-1257
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: r3 core: remote
>    Affects Versions: 3.1.0.Beta2
>            Reporter: Ron Sigal
>             Fix For: 3.1.0.Beta3
>
>
> An invocation of org.jboss.remoting.Client.send() will cause the execution of an InboundRequestTask on the server, where InboundRequestTask.run() looks for the related org.jboss.remoting3.remote.InboundClient to execute the request.  An invocation of Client.close() will result in the related InboundClient being removed from its map.  Since the InboundRequestTask is executed in a separate thread, it is possible for the removal of the InboundClient to occur before the InboundRequestTask accesses it.  The result is a NullPointerException.

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

        


More information about the jboss-remoting-issues mailing list