summaryrefslogtreecommitdiff
path: root/TAO/tao/UIOP_Connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/UIOP_Connector.cpp')
-rw-r--r--TAO/tao/UIOP_Connector.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/TAO/tao/UIOP_Connector.cpp b/TAO/tao/UIOP_Connector.cpp
index 872fbed8b0d..3f1d3e665d3 100644
--- a/TAO/tao/UIOP_Connector.cpp
+++ b/TAO/tao/UIOP_Connector.cpp
@@ -305,9 +305,21 @@ TAO_UIOP_Connector::preconnect (const char *preconnects)
{
if (!failures[slot])
{
- handlers[slot]->idle ();
+ TAO_UIOP_Endpoint endpoint (remote_addrs[slot]);
+
+ TAO_Base_Connection_Property prop (&endpoint);
+
+ // Add the handler to Cache
+ int retval =
+ this->orb_core ()->connection_cache ().cache_handler (&prop,
+ handlers[slot]);
++successes;
+ if (retval != 0 && TAO_debug_level > 4)
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("TAO (%P|%t) Unable to add handles\n"),
+ ACE_TEXT ("to cache \n")));
+
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"TAO (%P|%t) Preconnection <%s> succeeded.\n",