commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Welkenbach (JIRA)" <j...@apache.org>
Subject [jira] Created: (DBCP-232) maxWait = 0 waits indefinitely too, not only maxWait = -1
Date Fri, 13 Jul 2007 07:32:04 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message