public synchronized void deleteClosedConnections(){
  final Iterator iter=freeConnections.iterator();
  while (iter.hasNext()) {
    final HttpConnection conn=(HttpConnection)iter.next();
    if (!conn.isOpen()) {
      iter.remove();
      deleteConnection(conn);
    }
  }
}

public synchronized void deleteClosedConnections ( ) { final Iterator iter = freeConnections . iterator ( ) ; while ( iter . hasNext ( ) ) { final HttpConnection conn = ( HttpConnection ) iter . next ( ) ; if ( ! conn . isOpen ( ) ) { iter . remove ( ) ; deleteConnection ( conn ) ; } } }
deletes all closed connections .
