public void shedCache(){
  Connection[] conn;
synchronized (freeList) {
    conn=freeList.toArray(new Connection[freeList.size()]);
    freeList.clear();
  }
  for (int i=conn.length; --i >= 0; ) {
    Connection c=conn[i];
    conn[i]=null;
    try {
      c.close();
    }
 catch (    java.io.IOException e) {
    }
  }
}

public void shedCache ( ) { Connection [ ] conn ; synchronized ( freeList ) { conn = freeList . toArray ( new Connection [ freeList . size ( ) ] ) ; freeList . clear ( ) ; } for ( int i = conn . length ; -- i >= 0 ; ) { Connection c = conn [ i ] ; conn [ i ] = null ; try { c . close ( ) ; } catch ( java . io . IOException e ) { } } }
closes all the connections in the cache , whether timed out or not .
