diff options
author | James E. King, III <jking@apache.org> | 2017-04-04 09:36:38 -0400 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-04-04 09:36:38 -0400 |
commit | 7f5a8c28bc58011abef0cede10915c2071efbe41 (patch) | |
tree | f569cf57f50dd59e39e8258f9b964224c21d3cd5 /test/cpp | |
parent | 00d4252392d9159202cd6ffc4b3294f85265310f (diff) | |
download | thrift-7f5a8c28bc58011abef0cede10915c2071efbe41.tar.gz |
THRIFT-4164: update openssl cleanup to match current requirements and document TSSLSocketFactory lifetime requirements
Client: cpp
This closes #1235
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/src/TestClient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/src/TestClient.cpp b/test/cpp/src/TestClient.cpp index a918bfba4..6ecf5404d 100644 --- a/test/cpp/src/TestClient.cpp +++ b/test/cpp/src/TestClient.cpp @@ -228,12 +228,12 @@ int main(int argc, char** argv) { noinsane = true; } + // THRIFT-4164: The factory MUST outlive any sockets it creates for correct behavior! + boost::shared_ptr<TSSLSocketFactory> factory; + boost::shared_ptr<TSocket> socket; boost::shared_ptr<TTransport> transport; boost::shared_ptr<TProtocol> protocol; - boost::shared_ptr<TSocket> socket; - boost::shared_ptr<TSSLSocketFactory> factory; - if (ssl) { cout << "Client Certificate File: " << certPath << endl; cout << "Client Key File: " << keyPath << endl; |