DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37337>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37337

           Summary: GenericObjectPool WHEN_EXHAUSTED_BLOCK behvior could
                    wait almost twice as long as desired
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Pool
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Very minor bug: On lines 797 of GenericObjectPool and lines 809 of 
GenericKeyedObjectPool the code is 
such that if the pool is exhausted and the thread waits and is notified shortly 
before _maxWait time has 
elapsed then then the thread may end up waiting for another period of _maxWait. 
Combined with the 
previous wait the thread could have actually waited almost twice the desired 
time. The correct behavior 
would be to do the math and wait a lesser amount adjusted for the previous wait 
interval.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to