commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/pool/src/java/org/apache/commons/pool/impl GenericObjectPool.java
Date Tue, 29 Jun 2004 20:03:03 GMT
dirkv       2004/06/29 13:03:02

  Modified:    pool/src/java/org/apache/commons/pool/impl
                        GenericObjectPool.java
  Log:
  Bugzilla Bug 29863:	GenericObjectPool.setMaxActive(0) allows an infinite number of instances
  - fixed => setMaxActive(0) allows no connections
  
  Revision  Changes    Path
  1.33      +2 -2      jakarta-commons/pool/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
  
  Index: GenericObjectPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/pool/src/java/org/apache/commons/pool/impl/GenericObjectPool.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- GenericObjectPool.java	27 Apr 2004 20:15:56 -0000	1.32
  +++ GenericObjectPool.java	29 Jun 2004 20:03:02 -0000	1.33
  @@ -732,7 +732,7 @@
                   if(null == pair) {
                       // check if we can create one
                       // (note we know that the num sleeping is 0, else we wouldn't be here)
  -                    if(_maxActive <= 0 || _numActive < _maxActive) {
  +                    if(_maxActive < 0 || _numActive < _maxActive) {
                           // allow new object to be created
                       } else {
                           // the pool is exhausted
  
  
  

---------------------------------------------------------------------
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