grpc v1.81.1 版本更新介绍
发布日期: 2026-06-08
版本号: v1.81.1
这是 gRPC Core 的 1.81.0 版本,主要包含性能优化、功能改进和错误修复。核心改进包括修复了 Windows 平台上的潜在内存安全问题和竞态条件,优化了 SSL 服务端握手和内存模型下的完成队列关闭。Objective-C 平台为 GRPCUnaryProtoCall 新增了接收消息的方法。Python 平台更新了依赖管理,增加了类型检查支持,移除了对 Python 3.9 的兼容,并优化了 AsyncIO 栈的可观测性。Ruby 平台则移除了对已停止维护的 Ruby 3.1 的支持,并改进了 CallCredentials 的引用管理。
更新内容 (中文)
这是 gRPC Core 的 1.81.0 版本(图形说明)。
有关 gRPC 文档,请参阅 grpc.io。有关先前版本,请参阅发布版本。
此版本包含改进、优化和错误修复,重点如下。
核心
- [EventEngine] 修复 Windows 上一个潜在的释放后使用错误。(#42078)
- [ssl] 服务器端握手器工厂存储一个密钥签名器映射。(#42002)
- [Core] 修复弱内存模型(ARM)上完成队列关闭的竞争条件。(#41510)
- [EventEngine] 修复 Windows 上导致断言错误的竞争条件。(#41563)
- [grpc_error] 在开源版本中启用 error_flatten 实验。(#41471)
Objective-C
- [ObjC] 为 GRPCUnaryProtoCall 添加 receiveNextMessage 方法。(#42260)
Python
- [Python] 为 aio Bazel 目标添加 typing_extensions 依赖。(#42001)
- [Python] [Pyright] 第 1 部分 - 为 src/python/grpcio/grpc/aio/_base_server.py 添加 Pyright 支持。(#42240)
- [Python] 放弃对 Python 3.9 的支持。(#42145)
- [Python] grpc-status: 放宽 protobuf 依赖上限以允许 7.x 版本。(#41948)
- [Python] [Typeguard] 第 5 部分 - 在测试中添加 Typeguard 同步栈。(#40278)
- [Python] 从 ReceiveMessageOperation.un_c 方法中移除 GIL。(#41812)
- [Python] 在 AsyncIO 栈中支持可观察性。(#41573)
- [Python] 精简 Python2 向后兼容语法 - 移除了 (object) 继承。(#41708)
Ruby
- [Ruby] 停止对生命周期结束的 Ruby 3.1 的支持并进行清理。(#41435)
- [Ruby] 组合调用凭据 (Composed CallCredentials) 保留对其源凭据的引用。(#41782)
更新内容 (原始)
This is release 1.81.0 (graphic) of gRPC Core.
For gRPC documentation, see grpc.io. For previous releases, see Releases.
This release contains refinements, improvements, and bug fixes, with highlights listed below.
Core
- [EventEngine] Fix a potential use-after-free error on Windows. (#42078)
- [ssl] Server side handshaker factory stores a map of key signers. (#42002)
- [Core] Fix completion queue shutdown race on weak memory models (ARM). (#41510)
- [EventEngine] Fix a Windows race that causes an assertion error. (#41563)
- [grpc_error] enable error_flatten experiment in OSS. (#41471)
Objective-C
- [ObjC] Add receiveNextMessage to GRPCUnaryProtoCall. (#42260)
Python
- [Python] Add typing_extensions dep to aio Bazel target. (#42001)
- [Python] [Pyright] Part 1 - Pyright for src/python/grpcio/grpc/aio/_base_server.py. (#42240)
- [Python] Drop 3.9. (#42145)
- [Python] grpc-status: Relax protobuf dependency upper bound to allow 7.x. (#41948)
- [Python] [Typeguard] Part 5 - Add Typeguard SYNC Stack in tests. (#40278)
- [Python] Remove GIL from ReceiveMessageOperation.un_c method. (#41812)
- [Python] Support observability in AsyncIO stack. (#41573)
- [Python] Trim Python2 backward compatiblity syntax - removed (object) inheritance. (#41708)
Ruby
- [Ruby] Drop support for EOL Ruby 3.1 and clean up. (#41435)
- [Ruby] Composed CallCredentials keep a reference to their source. (#41782)