diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2008-04-30 14:26:22 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2008-04-30 14:26:22 +0000 |
commit | e76d9cb537c4ce7ee2363203b23315ef7392cfec (patch) | |
tree | 39f3f20cb12f15070f2dc9270252ce28af87efe0 /TAO/tao/Connection_Handler.cpp | |
parent | 0b3174d0e39cac3e19dba29dd8302808968a7dc8 (diff) | |
download | ATCD-e76d9cb537c4ce7ee2363203b23315ef7392cfec.tar.gz |
ChangeLogTag: Wed Apr 30 14:28:52 UTC 2008 tao/ <elliott_c@ociweb.com>ATD_20080317
Diffstat (limited to 'TAO/tao/Connection_Handler.cpp')
-rw-r--r-- | TAO/tao/Connection_Handler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/tao/Connection_Handler.cpp b/TAO/tao/Connection_Handler.cpp index 08299dcdc6b..36477ce9e8e 100644 --- a/TAO/tao/Connection_Handler.cpp +++ b/TAO/tao/Connection_Handler.cpp @@ -10,6 +10,7 @@ #include "ace/SOCK.h" #include "ace/Reactor.h" #include "ace/os_include/sys/os_socket.h" +#include "ace/Svc_Handler.h" //@@ CONNECTION_HANDLER_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK @@ -442,8 +443,9 @@ TAO_Connection_Handler::close_handler (u_long flags) transport->purge_entry(); // We only need to remove the reference from the transport if there - // were connections pending at the time that the handler is closed. - if (pending || ACE_BIT_DISABLED(flags, 1)) + // were connections pending at the time that the handler is closed or + // the handler is being closed during a new connection. + if (pending || ACE_BIT_DISABLED(flags, CLOSE_DURING_NEW_CONNECTION)) transport->remove_reference (); return 0; |