2 Replies Latest reply on Jan 16, 2004 2:38 PM by Adrian Brock

    Bug in InternalManagedConnectionPool (permits)

    F Zemen Newbie


      "jbossuser" wrote:
      "jbossuser" wrote:
      Not sure if I found a bug, but it looks like one from a code read.

      Basically, what I think I found is that when a getConnection is called, a permit is reserved (permits.attempt). However, if the connection went bad, it is destroyed (for example if it matchManagedConnections returns null without an exception.

      The problem is, I can't find when the permit would be released in this case. If this happened enough times, you'd run out of permits (I think).