commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DBCP-232) maxWait = 0 waits indefinitely too, not only maxWait = -1
Date Sat, 21 Jul 2007 23:48:06 GMT

     [ https://issues.apache.org/jira/browse/DBCP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Phil Steitz resolved DBCP-232.
------------------------------

    Resolution: Fixed

Javadoc fix committed in  r558394.  Thanks for reporting thi

> 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