diff options
author | mitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-08-28 22:53:36 +0000 |
---|---|---|
committer | mitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-08-28 22:53:36 +0000 |
commit | 47dcc0f8e2f4063c0c0b40178b91fb4db5bdf143 (patch) | |
tree | bd7f0143fa82fa454b6fa8ce4d39a75551c51215 /TAO/tao/Connection_Handler.cpp | |
parent | fedf2af5f241ba697ab9364253d10ac52329b283 (diff) | |
download | ATCD-47dcc0f8e2f4063c0c0b40178b91fb4db5bdf143.tar.gz |
ChangeLogTag: Thu Aug 28 21:47:42 UTC 2008 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'TAO/tao/Connection_Handler.cpp')
-rw-r--r-- | TAO/tao/Connection_Handler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tao/Connection_Handler.cpp b/TAO/tao/Connection_Handler.cpp index 0dd73264ee3..92eb3e5033a 100644 --- a/TAO/tao/Connection_Handler.cpp +++ b/TAO/tao/Connection_Handler.cpp @@ -27,7 +27,8 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Connection_Handler::TAO_Connection_Handler (TAO_ORB_Core *orb_core) : orb_core_ (orb_core), transport_ (0), - connection_pending_ (false) + connection_pending_ (false), + is_closed_ (false) { // @todo: We need to have a distinct option/ method in the resource // factory for this and TAO_Transport. @@ -295,6 +296,9 @@ TAO_Connection_Handler::handle_input_internal ( int TAO_Connection_Handler::close_connection_eh (ACE_Event_Handler *eh) { + + this->is_closed_ = true; + // Save the ID for debugging messages ACE_HANDLE handle = eh->get_handle (); @@ -429,6 +433,7 @@ TAO_Connection_Handler::pos_io_hook (int &) int TAO_Connection_Handler::close_handler (u_long flags) { + this->is_closed_ = true; this->state_changed (TAO_LF_Event::LFS_CONNECTION_CLOSED, this->orb_core_->leader_follower ()); |