--- parser3/src/main/pa_stylesheet_manager.C 2003/12/11 09:22:09 1.23 +++ parser3/src/main/pa_stylesheet_manager.C 2005/08/09 08:14:52 1.27 @@ -1,13 +1,13 @@ /** @file Parser: sql driver manager implementation. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #include "pa_config_includes.h" #ifdef XML -static const char * const IDENT_STYLESHEET_MANAGER_C="$Date: 2003/12/11 09:22:09 $"; +static const char * const IDENT_STYLESHEET_MANAGER_C="$Date: 2005/08/09 08:14:52 $"; #include "pa_stylesheet_manager.h" #include "pa_exception.h" @@ -23,7 +23,6 @@ Stylesheet_manager* stylesheet_manager=0 // consts -const time_t SECOND=1; const time_t EXPIRE_UNUSED_CONNECTION_SECONDS=5*60; const time_t CHECK_EXPIRED_CONNECTION_SECONDS=EXPIRE_UNUSED_CONNECTION_SECONDS*2; @@ -44,7 +43,7 @@ static void expire_connections( // Stylesheet_connection methods void Stylesheet_connection::close() { - stylesheet_manager.close_connection(ffile_spec, *this); + stylesheet_manager->close_connection(ffile_spec, *this); } // Stylesheet_manager methods @@ -53,7 +52,7 @@ Stylesheet_manager::Stylesheet_manager() } Stylesheet_manager::~Stylesheet_manager() { - connection_cache.for_each(expire_connections, time(0)+SECOND/*=in future=expire all*/); + connection_cache.for_each(expire_connections, time(0)+(time_t)10/*=in future=expire all*/); } Stylesheet_connection_ptr Stylesheet_manager::get_connection(String::Body file_spec) {