diff options
author | heretic <heretic@yandex-team.ru> | 2022-03-25 12:34:53 +0300 |
---|---|---|
committer | heretic <heretic@yandex-team.ru> | 2022-03-25 12:34:53 +0300 |
commit | a41f3739eed6fceb6f62056a7620d220958a47e7 (patch) | |
tree | 278103258b510cb4a96761ea79d6ccd397ca05a0 /library | |
parent | 73d3613a82e5c217fcbe0ab8bbf8120c1ed1af55 (diff) | |
download | ydb-a41f3739eed6fceb6f62056a7620d220958a47e7.tar.gz |
Update grpc to 1.43.2 DTCC-864
ref:50a492c335cda70f458797cf945e49fe739c2715
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/grpc/client/grpc_client_low.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/cpp/grpc/client/grpc_client_low.cpp b/library/cpp/grpc/client/grpc_client_low.cpp index 73cc908ef8..5794e1ecb1 100644 --- a/library/cpp/grpc/client/grpc_client_low.cpp +++ b/library/cpp/grpc/client/grpc_client_low.cpp @@ -84,6 +84,10 @@ private: static void Destroy(grpc_socket_mutator* mutator) { delete Cast(mutator); } + static bool Mutate2(const grpc_mutate_socket_info* info, grpc_socket_mutator* mutator) { + auto self = Cast(mutator); + return self->SetOption(info->fd); + } static grpc_socket_mutator_vtable VTable; const int Idle_; @@ -95,7 +99,8 @@ grpc_socket_mutator_vtable TGRpcKeepAliveSocketMutator::VTable = { &TGRpcKeepAliveSocketMutator::Mutate, &TGRpcKeepAliveSocketMutator::Compare, - &TGRpcKeepAliveSocketMutator::Destroy + &TGRpcKeepAliveSocketMutator::Destroy, + &TGRpcKeepAliveSocketMutator::Mutate2 }; TChannelPool::TChannelPool(const TTcpKeepAliveSettings& tcpKeepAliveSettings, const TDuration& expireTime) |