From cb1656c11ae6d99bc58375a54e91888d4191d986 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Wed, 15 May 2024 23:02:15 +0800 Subject: [PATCH] Fix python client connecting to server slowly. (#1209) ### What problem does this PR solve? As title ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: Jin Hai --- src/network/thrift_server.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/network/thrift_server.cpp b/src/network/thrift_server.cpp index f57ba568fb..a41c00e7a9 100644 --- a/src/network/thrift_server.cpp +++ b/src/network/thrift_server.cpp @@ -94,14 +94,6 @@ class InfinityServiceCloneFactory final : public infinity_thrift_rpc::InfinitySe ~InfinityServiceCloneFactory() final = default; infinity_thrift_rpc::InfinityServiceIf *getHandler(const ::apache::thrift::TConnectionInfo &connInfo) final { - SharedPtr sock = std::dynamic_pointer_cast(connInfo.transport); - - LOG_TRACE(fmt::format("Incoming connection, SocketInfo: {}, PeerHost: {}, PeerAddress: {}, PeerPort: {}", - sock->getSocketInfo(), - sock->getPeerHost(), - sock->getPeerAddress(), - sock->getPeerPort())); - return new InfinityThriftService; } @@ -118,7 +110,7 @@ void ThreadedThriftServer::Init(i32 port_no) { server = MakeUnique(MakeShared(MakeShared()), MakeShared(port_no), // port MakeShared(), - binary_protocol_factory); + binary_protocol_factory); } void ThreadedThriftServer::Start() { server->serve(); }