summaryrefslogtreecommitdiff
path: root/ACE/tests/Bug_2609_Regression_Test.cpp
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-11 12:34:49 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-11 12:34:49 +0000
commit021829ecdabfa3b1be8afc29d72339c0fd487704 (patch)
tree1c0a35462fee541faaebbb740e8b9812d1ed3908 /ACE/tests/Bug_2609_Regression_Test.cpp
parentcc356b71b978d4f612dc7fcf8b5f6a3195337d9f (diff)
downloadATCD-021829ecdabfa3b1be8afc29d72339c0fd487704.tar.gz
Thu Feb 11 12:18:24 UTC 2010 Vladimir Zykov <vladimir.zykov@prismtech.com>
* ace/Connector.cpp: Added a call to remove_reference() for a svc handler owned by non-blocking connection handler during connector's close(). * ace/Svc_Handler.cpp: Removed the code that removes a reference to itself. Svc_Handler doesn't own that reference and thus shouldn't remove it. * tests/Bug_2609_Regression_Test.cpp: * tests/NonBlocking_Conn_Test.h: * tests/Bug_2610_Regression_Test.cpp: * tests/NonBlocking_Conn_Test.cpp: Fixed the tests that implicitly assumed ownership of a reference to a svc handler and didn't free it at the end of the test. * tests/Process_Strategy_Test.cpp: Fixed the test that was broken by my change on 'Mon Feb 8 16:21:06 UTC 2010'. The test incorrectly assumed that close_handle() will not be called for svc handlers in a parent process.
Diffstat (limited to 'ACE/tests/Bug_2609_Regression_Test.cpp')
-rw-r--r--ACE/tests/Bug_2609_Regression_Test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ACE/tests/Bug_2609_Regression_Test.cpp b/ACE/tests/Bug_2609_Regression_Test.cpp
index 734ba205acd..2c94b30cd44 100644
--- a/ACE/tests/Bug_2609_Regression_Test.cpp
+++ b/ACE/tests/Bug_2609_Regression_Test.cpp
@@ -64,6 +64,8 @@ public:
{
TEST_TRACE ("handle_close");
super::handle_close (fd, mask);
+ // Remove own reference which we own since creation.
+ this->remove_reference ();
if (g_handler_deleted)
{
ACE_ERROR ((LM_ERROR,