maxWait = 0  waits indefinitely too, not only maxWait = -1
----------------------------------------------------------

                 Key: DBCP-232
                 URL: https://issues.apache.org/jira/browse/DBCP-232
             Project: Commons Dbcp
          Issue Type: Improvement
         Environment: all
            Reporter: Peter Welkenbach
            Priority: Critical


the documentation describes the maxWait property as:

"The maximum number of milliseconds that the pool will wait (when there are no 
available connections) for a connection to be returned before throwing an 
exception, or -1 to wait indefinitely."

this seems to be wrong. Compared to the source code it should be

"for a connection to be returned before throwing an exception, or -1 or 0 to 
wait indefinitely."  

in the source code of class GenericObjectPool the comparison is  "maxWait <= 0"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to