summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-20 22:54:24 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-20 22:54:24 +0000
commit1836a54e102bfb7c15ce911dcf1cf500036c8768 (patch)
treee934eb6456213a363b35db8345b5841c90f25d46
parentd2c246ef00e1093f365f445f5d7357a7fe256ca3 (diff)
downloadATCD-1836a54e102bfb7c15ce911dcf1cf500036c8768.tar.gz
Just changed the default for keep_available_handles = 1024;
-rw-r--r--tests/Cached_Conn_Test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Cached_Conn_Test.cpp b/tests/Cached_Conn_Test.cpp
index 8ce93308b86..007dbc94822 100644
--- a/tests/Cached_Conn_Test.cpp
+++ b/tests/Cached_Conn_Test.cpp
@@ -167,7 +167,7 @@ static int listen_once = 1;
static int iterations = 2000;
static int user_has_specified_iterations = 0;
static double purge_percentage = 20;
-static size_t keep_available_handles = 10;
+static size_t keep_available_handles = 1024;
static Caching_Strategy_Type caching_strategy_type = ACE_ALL;
static CACHED_CONNECT_STRATEGY *connect_strategy = 0;
@@ -462,6 +462,10 @@ main (int argc,
Handle_Consumer handle_consumer;
handle_consumer.consume_handles (keep_available_handles);
+#if defined ACE_HAS_BROKEN_EXTENDED_TEMPLATES
+ caching_strategy_type = ACE_LRU;
+#endif /* ACE_HAS_BROKEN_EXTENDED_TEMPLATES */
+
// Do we need to test all the strategies. Note, that the less
// useful null strategy is ignored in this case.
if (caching_strategy_type == ACE_ALL)