commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11507] - Cleanup dead connections
Date Tue, 06 Aug 2002 19:07:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11507>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11507

Cleanup dead connections





------- Additional Comments From rogernell@yahoo.com  2002-08-06 19:07 -------
I'm not seeing an unclosed connection being reclaimed in the following test 
case:

  // TIME_BEWTWEEN_EVICTION_RUNS_MILLIS = 1000
  // MIN_EVICTABLE_IDLE_TIME_MILLIS = 5000
  conn = datasource.getConnection();

  // execute "select * from dual"
  exeriseConn( conn );
  assertEquals( "numActive", 1, p.numActive() );

  // sleep for 16secs, connection should be reclaimed
  synchronized( this ) { wait( 16000 ); }

  // Fails with numActive=1
  assertEquals( "numActive", 0, p.numActive() );

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message