You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by be...@apache.org on 2015/07/30 03:50:24 UTC
thrift git commit: THIFT-3270: reusing
TNonblockingServer::TConnection cause dirty TSocket Client: cpp Patch: Jesse
Fang
Repository: thrift
Updated Branches:
refs/heads/master 46ab187bb -> 6515aad1f
THIFT-3270: reusing TNonblockingServer::TConnection cause dirty TSocket
Client: cpp
Patch: Jesse Fang
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/6515aad1
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/6515aad1
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/6515aad1
Branch: refs/heads/master
Commit: 6515aad1f1519a9a3e38a3b72ab5d4b1b999fb56
Parents: 46ab187
Author: Ben Craig <be...@apache.org>
Authored: Wed Jul 29 20:48:48 2015 -0500
Committer: Ben Craig <be...@apache.org>
Committed: Wed Jul 29 20:48:48 2015 -0500
----------------------------------------------------------------------
lib/cpp/src/thrift/transport/TSocket.cpp | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/6515aad1/lib/cpp/src/thrift/transport/TSocket.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/transport/TSocket.cpp b/lib/cpp/src/thrift/transport/TSocket.cpp
index 2450d50..d336bb4 100644
--- a/lib/cpp/src/thrift/transport/TSocket.cpp
+++ b/lib/cpp/src/thrift/transport/TSocket.cpp
@@ -883,6 +883,8 @@ void TSocket::setCachedAddress(const sockaddr* addr, socklen_t len) {
}
break;
}
+ peerAddress_.clear();
+ peerHost_.clear();
}
sockaddr* TSocket::getCachedAddress(socklen_t* len) const {