Uploaded image for project: 'JBoss Remoting'
  1. JBoss Remoting
  2. JBREM-889

If an exception occurs during invocation, usedPooled is not decremented, thus leading into eventual remoting failures

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.2.SP1
    • Fix Version/s: None
    • Component/s: transport
    • Labels:
      None

      Description

      Hello,

      I guess this goes into Ron's area. Back in 2004 we had had a similar issue.

      In MicroSocketClientInvoker.transport(), having obtained a socket, if an exception occurs during the invocation, the code that decrements usedPooled never gets called thus inflating overtime. Eventually reaches 50, the hard limit which in turn, makes clients unable to obtain a socket from pool or create a new one.

      I guess, a try, finally block is needed starting right after successful socket acquired, till where you decrement the usedPooled (marked with // Put socket back in pool for reuse).

      This will make sure the usedPooled is decremented.

      I searched the JIRA and also found similar bug reports which I believe all should be related.

      Regards,
      Hasan Ceylan

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ronald Sigal
                Reporter:
                hceylan Hasan Ceylan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: