summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
index ee9f22db91c..5052822e66a 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
@@ -10,6 +10,7 @@
#include "tao/Environment.h"
#include "tao/Base_Transport_Property.h"
#include "tao/IIOP_Endpoint.h"
+#include "tao/Connection_Purging_Strategy.h"
#include "ace/Strategies_T.h"
@@ -158,8 +159,8 @@ TAO_IIOP_SSL_Connector::connect (TAO_Transport_Descriptor_Interface *desc,
TAO_Transport *base_transport = 0;
// Check the Cache first for connections
- if (this->orb_core ()->transport_cache ().find_transport (desc,
- base_transport) == 0)
+ if (this->orb_core ()->purging_strategy ()->find_in_cache (desc,
+ base_transport) == 0)
{
if (TAO_debug_level > 5)
ACE_DEBUG ((LM_DEBUG,
@@ -174,6 +175,9 @@ TAO_IIOP_SSL_Connector::connect (TAO_Transport_Descriptor_Interface *desc,
ACE_TEXT ("(%P|%t) IIOP_SSL_Connector::connect ")
ACE_TEXT ("making a new connection \n")));
+ // Purge connections (if necessary)
+ this->orb_core ()->purging_strategy ()->purge ();
+
// @@ This needs to change in the next round when we implement a
// policy that will not allow new connections when a connection
// is busy.
@@ -223,8 +227,8 @@ TAO_IIOP_SSL_Connector::connect (TAO_Transport_Descriptor_Interface *desc,
base_transport = TAO_Transport::_duplicate (svc_handler->transport ());
// Add the handler to Cache
int retval =
- this->orb_core ()->transport_cache ().cache_transport (desc,
- base_transport);
+ this->orb_core ()->purging_strategy ()->add_to_cache (desc,
+ base_transport);
if (retval != 0 && TAO_debug_level > 0)
{