[jboss-jira] [JBoss JIRA] Closed: (JBREM-625) MicroSocketClientInvoker should decrement count of used sockets when a socket is discarded.

Ron Sigal (JIRA) jira-events at jboss.com
Thu Nov 2 23:11:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBREM-625?page=all ]

Ron Sigal closed JBREM-625.
---------------------------

    Resolution: Done

Added two lines to decrement usedPooled when a socket is discarded.  

Unit test: org.jboss.test.remoting.transport.socket.socketpool.SocketPoolTestCase.

> MicroSocketClientInvoker should decrement count of used sockets when a socket is discarded.
> -------------------------------------------------------------------------------------------
>
>                 Key: JBREM-625
>                 URL: http://jira.jboss.com/jira/browse/JBREM-625
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.2.0.Alpha3 (Bluto)
>            Reporter: Ron Sigal
>         Assigned To: Ron Sigal
>             Fix For: 2.2.0.Alpha3 (Bluto)
>
>
> MicroSocketClientInvoker keeps a counter, usedPooled, of sockets currently in use.  When a new socket is created, or when a socket is taken from the socket pool for reuse, usedPooled is incremented, and when the socket is returned to the pool, usedPooled is decremented.  However, if a socket experiences a failure (e.g., timeout), the socket is discarded but usedPooled is not decremented.  Eventually, usedPooled can reach its maximum value with no working sockets and no possibility of creating new ones.

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

        



More information about the jboss-jira mailing list