diff options
Diffstat (limited to 'TAO/tao/IIOP_Connection_Handler.cpp')
-rw-r--r-- | TAO/tao/IIOP_Connection_Handler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/TAO/tao/IIOP_Connection_Handler.cpp b/TAO/tao/IIOP_Connection_Handler.cpp index c9f13c78cff..552eff0856b 100644 --- a/TAO/tao/IIOP_Connection_Handler.cpp +++ b/TAO/tao/IIOP_Connection_Handler.cpp @@ -380,7 +380,11 @@ TAO_IIOP_Connection_Handler::close_connection (void) { struct linger lval; lval.l_onoff = 1; +#if defined(ACE_HAS_LINGER_MS) + lval.l_linger_ms = linger * 1000; +#else lval.l_linger = (u_short)linger; +#endif if (this->peer ().set_option(SOL_SOCKET, SO_LINGER, (void*) &lval, @@ -662,9 +666,8 @@ TAO_IIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio void TAO_IIOP_Connection_Handler::abort (void) { - struct linger lval; + struct linger lval = { 0, 0 }; lval.l_onoff = 1; - lval.l_linger = 0; if (this->peer ().set_option(SOL_SOCKET, SO_LINGER, |