grpc v1.81.0 版本更新介绍
发布日期: 2026-05-29
版本号: v1.81.0
本版本主要包含gRPC Core 1.81.0的更新、改进和错误修复。核心模块修复了Windows平台的潜在内存安全问题(事件引擎)和竞态条件,并改进了SSL握手及错误处理。Objective-C新增了消息接收功能。Python模块优化了依赖管理,放松了protobuf版本限制,改进了类型提示和异步IO支持,并移除了对Python 3.9的支持以及部分旧版兼容性语法。Ruby模块停止了对已终止维护的Ruby 3.1的支持,并改进了凭证处理。详细修复内容可参阅官方发布页面。
更新内容 (中文)
这是 gRPC Core 1.81.0 版本(graphic)的发布说明。
gRPC 文档请参阅 grpc.io。历史版本请参阅 Releases。
本版本包含优化、改进和错误修复,以下为主要更新内容。
Core
- [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 SYNC 栈。(#40278)
- [Python] 从 ReceiveMessageOperation.un_c 方法中移除 GIL。(#41812)
- [Python] 在 AsyncIO 栈中支持可观测性。(#41573)
- [Python] 精简 Python2 向后兼容语法 - 移除 (object) 继承。(#41708)
Ruby
更新内容 (原始)
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)