From 6d80dbd310239f2479c37fe5c50f781f1de07e60 Mon Sep 17 00:00:00 2001 From: Phil Mesnier Date: Tue, 16 May 2006 06:10:47 +0000 Subject: ChangeLog tag: Tue May 16 05:22:15 UTC 2006 Phil Mesnier --- TAO/tao/IIOP_Connection_Handler.cpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'TAO/tao/IIOP_Connection_Handler.cpp') diff --git a/TAO/tao/IIOP_Connection_Handler.cpp b/TAO/tao/IIOP_Connection_Handler.cpp index d65d0ae017d..0f59383abe5 100644 --- a/TAO/tao/IIOP_Connection_Handler.cpp +++ b/TAO/tao/IIOP_Connection_Handler.cpp @@ -500,23 +500,23 @@ TAO_IIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio void TAO_IIOP_Connection_Handler::abort (void) { - struct linger lval; - lval.l_onoff = 1; - lval.l_linger = 0; - - if (this->peer ().set_option(SOL_SOCKET, - SO_LINGER, - (void*) &lval, - sizeof (lval)) == -1) + struct linger lval; + lval.l_onoff = 1; + lval.l_linger = 0; + + if (this->peer ().set_option(SOL_SOCKET, + SO_LINGER, + (void*) &lval, + sizeof (lval)) == -1) + { + if (TAO_debug_level) { - if (TAO_debug_level) - { - ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("TAO (%P|%t) Unable to set ") - ACE_TEXT ("SO_LINGER on %d\n"), - this->peer ().get_handle ())); - } + ACE_DEBUG ((LM_DEBUG, + ACE_TEXT ("TAO (%P|%t) Unable to set ") + ACE_TEXT ("SO_LINGER on %d\n"), + this->peer ().get_handle ())); } + } } @@ -529,4 +529,3 @@ TAO_IIOP_Connection_Handler::abort (void) TAO_END_VERSIONED_NAMESPACE_DECL #endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */ - -- cgit v1.2.1