gRPC 1.16.0 发布了,这是一个 gRPC 核心更新版本,针对各语言版本都进行了更新,包含优化、改进和错误修复,下面列出了值得关注的更新:
Core
- Keepalive watchdog firing should return status
UNAVAILABLE
. (#16764) - Set
TCP_USER_TIMEOUT
socket option for linux . (#16419) - When using c-ares, resolve ip literals and Windows localhost on our own. (#16420)
- Turn loading system root certificate as default. (#16536)
- Change pick_first to not unref unselected subchannels. (#16342)
C++
- fix *_unsecure.pc files. (#16754)
- cmake: prevent C core from depending on libstdc++. (#16752)
- Implement Watch method in health check service. (#16574)
- Fix async_stream.h warning on Visual Studio. (#16544)
C#
- Secure channel throughput improvements: Linux x86_64 version of grpc_csharp_ext nuget now ships with assembly-optimized version of boringssl, which leads to significant improvements in throughput of secure C# channels. See https://github.com/grpc/grpc/blob/v1.16.x/doc/ssl-performance.md for details.
- Expose certificate request type in
SslServerCredentials
. (#16552) - build assembly-optimized grpc_csharp_ext with cmake. (#16777)
- ChannelOption improvements. (#16756)
- Various allocation optimizations. (#16631)
- Add new C# serialization API. (#16367)
- Add constructor overload for
RpcException
. (#16553) - Avoid leaking resources when starting a call fails. (#16554)
- Expose
TryWaitForStateChangedAsync
. (#16556) - Add exception info to
Status.Detail
if metadata credentials throws. (#16543)
Objective-C
- Fixed a crash related to error reporting. (#16696)
Python
- Fix SSL channel credential when an argument is None. (#16640)
- Bazel: Fix python BUILD rules. (#16561)
Ruby
- Switch to
send
instead ofmethod(...).call
. (#16642) - Rescue
GRPC::Core::CallError
so that worker threads are not killed. (#16477) - support for ruby_package options. (#16014)
- ruby: Raise instead of hanging if grpc is used before and after fork. (#16332)
发布说明和下载地址 https://github.com/grpc/grpc/releases/tag/v1.16.0
gRPC 是 Google 开源的高性能、通用 RPC 框架,面向移动和 HTTP/2 设计,是由谷歌发布的首款基于 Protocol Buffers 的 RPC 框架。gRPC 基于 HTTP/2 标准设计,带来诸如双向流、流控、头部压缩、单 TCP 连接上的多复用请求等特性。这些特性使得其在移动设备上表现更好,更省电且节省空间占用。
转自 https://www.oschina.net/news/101149/grpc-1-16-0-released