From 9c552f0f4fe7d49fc5cf92d6220451603f92be4e Mon Sep 17 00:00:00 2001 From: shylock <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:33:51 +0800 Subject: [PATCH] Workaround for issue 72 which block connection. (#91) --- src/client/Connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/Connection.cpp b/src/client/Connection.cpp index 1a693817..85c6711e 100644 --- a/src/client/Connection.cpp +++ b/src/client/Connection.cpp @@ -113,7 +113,8 @@ bool Connection::open(const std::string &address, if (!socket->good()) { return false; } - socket->setErrMessageCB(&NebulaConnectionErrMessageCallback::instance()); + // TODO workaround for issue #72 + // socket->setErrMessageCB(&NebulaConnectionErrMessageCallback::instance()); auto channel = apache::thrift::HeaderClientChannel::newChannel(socket); channel->setTimeout(timeout); client_ = new graph::cpp2::GraphServiceAsyncClient(std::move(channel));