geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From echobr...@apache.org
Subject [03/10] geode-native git commit: Close ACE_SOCK_Stream before deleting it
Date Wed, 28 Jun 2017 15:15:43 GMT
Close ACE_SOCK_Stream before deleting it

GF_SAFE_DELETE will delete the ACE_SOCK_Stream but the socket will still
be open.


Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/1896744d
Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/1896744d
Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/1896744d

Branch: refs/heads/feature/GEODE-3143
Commit: 1896744d6f6d0fa25ca62b8b9b060c28398e1f02
Parents: 25255eb
Author: fdaniel7 <fdaniel@amdocs.com>
Authored: Wed Jun 28 11:04:24 2017 +0300
Committer: fdaniel7 <fdaniel@amdocs.com>
Committed: Wed Jun 28 11:04:24 2017 +0300

----------------------------------------------------------------------
 .../1f9ac4ce/GEODE_BASE-2ee16599/GEODE_BASE.ipch  | Bin 0 -> 327680 bytes
 src/cppcache/src/TcpConn.cpp                      |   2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode-native/blob/1896744d/.vs/geode-native2/v15/ipch/AutoPCH/1f9ac4ce/GEODE_BASE-2ee16599/GEODE_BASE.ipch
----------------------------------------------------------------------
diff --git a/.vs/geode-native2/v15/ipch/AutoPCH/1f9ac4ce/GEODE_BASE-2ee16599/GEODE_BASE.ipch
b/.vs/geode-native2/v15/ipch/AutoPCH/1f9ac4ce/GEODE_BASE-2ee16599/GEODE_BASE.ipch
new file mode 100644
index 0000000..8671421
Binary files /dev/null and b/.vs/geode-native2/v15/ipch/AutoPCH/1f9ac4ce/GEODE_BASE-2ee16599/GEODE_BASE.ipch
differ

http://git-wip-us.apache.org/repos/asf/geode-native/blob/1896744d/src/cppcache/src/TcpConn.cpp
----------------------------------------------------------------------
diff --git a/src/cppcache/src/TcpConn.cpp b/src/cppcache/src/TcpConn.cpp
index 3c3747d..b80aa51 100644
--- a/src/cppcache/src/TcpConn.cpp
+++ b/src/cppcache/src/TcpConn.cpp
@@ -269,7 +269,7 @@ void TcpConn::connect() {
     ACE_OS::snprintf(msg, 256, "TcpConn::connect failed with errno: %d: %s",
                      lastError, ACE_OS::strerror(lastError));
     //  this is only called by constructor, so we must delete m_io
-    GF_SAFE_DELETE(m_io);
+	close();
     throw GeodeIOException(msg);
   }
   int rc = this->m_io->enable(ACE_NONBLOCK);


Mime
View raw message