diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2006-11-03 00:31:54 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2006-11-03 00:31:54 +0000 |
commit | 6a926a343333467c20af867b300b9891e84695e2 (patch) | |
tree | 5048d9d618c23e345265326f4c07c0067ec17eef /TAO/tao/IIOP_Connector.cpp | |
parent | efd14fdeef1052adf83ffbc846783bab14209b00 (diff) | |
download | ATCD-6a926a343333467c20af867b300b9891e84695e2.tar.gz |
Fri Nov 3 00:22:27 UTC 2006 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tao/IIOP_Connector.cpp')
-rw-r--r-- | TAO/tao/IIOP_Connector.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp index 79f8ed6cc1b..3d509136a89 100644 --- a/TAO/tao/IIOP_Connector.cpp +++ b/TAO/tao/IIOP_Connector.cpp @@ -457,7 +457,7 @@ TAO_IIOP_Connector::complete_connection (int result, // connected or not connected, but we have a connection. TAO_IIOP_Connection_Handler *svc_handler = 0; TAO_IIOP_Endpoint *iiop_endpoint = 0; - bool set_connection_pending = false; + if (transport != 0) { if (count == 1) @@ -503,10 +503,9 @@ TAO_IIOP_Connector::complete_connection (int result, return 0; } - if (transport->connection_handler()->keep_waiting()) + if (svc_handler->keep_waiting()) { svc_handler->connection_pending(); - set_connection_pending = true; } #if defined (INDUCE_BUG_2654_B) @@ -525,11 +524,8 @@ TAO_IIOP_Connector::complete_connection (int result, if (TAO_debug_level > 0) ACE_DEBUG((LM_DEBUG, ACE_TEXT("TAO (%P|%t) - IIOP_Connector::make_connection, ") - ACE_TEXT("transport in error before cache! ") - ACE_TEXT("conn_pend = %d\n"), - set_connection_pending)); - if (set_connection_pending) - svc_handler->remove_reference (); + ACE_TEXT("transport in error before cache! \n"))); + transport->connection_handler()->cancel_pending_connection(); return 0; } @@ -584,16 +580,13 @@ TAO_IIOP_Connector::complete_connection (int result, // before caching, the connection really failed, thus an invalid // connection is put into the cache. Thus we do one last status // check before handing the connection back to the caller. - if (transport->connection_handler()->error_detected()) + if (svc_handler->error_detected()) { if (TAO_debug_level > 0) ACE_DEBUG((LM_DEBUG, ACE_TEXT("TAO (%P|%t) - IIOP_Connector::make_connection, ") - ACE_TEXT("transport in error after cache! ") - ACE_TEXT("conn_pend = %d\n"), - set_connection_pending)); - if (set_connection_pending) - svc_handler->remove_reference (); + ACE_TEXT("transport in error after cache! \n"))); + svc_handler->cancel_pending_connection(); transport->purge_entry(); return 0; } |