发布日期: 2025-07-23
版本号: v1.74.0

gRPC Core 1.74.0版本包含了一系列优化、改进和错误修复。核心方面,增强了OpenTelemetry的TCP写入指标集成、为Posix事件引擎实现了分叉支持,并修复了HTTP/2流前瞻字节参数在特定情况下的问题。在语言绑定层面,Objective-C升级了Protobuf依赖,PHP完善了命名空间和类型提示,Python解决了客户端重连问题并优化了文档布局,Ruby则更新了平台支持、启用了事件引擎分叉支持、修复了返回值和线程管理问题,并停止了对Ruby 3.0的支持。

更新内容 (中文)

这是gRPC Core的1.74.0版本(gee)。

关于gRPC文档,请参阅 grpc.io。过往版本请查看 Releases

此版本包含优化、改进和错误修复,主要更新内容如下:

核心 (Core)

  • [OTel C++, Posix EE] 将TCP写入时间戳和指标传递给OTel追踪器。(#39946)
  • [event_engine] 在Posix事件引擎中实现fork支持。(#38980)
  • [http2] 修复了当BDP禁用时GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES的问题。(#39585)

Objective-C

  • [dep] 升级Protobuf版本至31.1。(#39916)

PHP

  • [PHP] 为stdClass添加完整的全局命名空间限定。(#39996)
  • [php] 修复PHPDoc,使UnaryCall定义正确的返回类型。(#37563)
  • 修复可空参数的类型标注。(#39199)

Python

  • [EventEngine] 修复gRPC Python客户端在某些情况下不重连的问题:#38290、#39113、#39631。(#39894)
  • 修复gRPC Python文档网站布局,优化空格使用。(#40073)

Ruby

  • [Ruby] 为linux-gnu和linux-musl平台添加rubygems支持。(#40174)
  • [ruby] 启用EE fork支持。(#39786)
  • [ruby] 对于预期返回VALUE的C函数,现在返回nil。(#39214)
  • [ruby] 移除连接状态监视线程,修复因虚假信号导致的取消操作。(#39409)
  • [ruby] 不再支持Ruby 3.0。(#39607)

更新内容 (原始)

This is release 1.74.0 (gee) 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

  • [OTel C++, Posix EE] Plumb TCP write timestamps and metrics to OTel tracers. (#39946)
  • [event_engine] Implement fork support in Posix Event Engine. (#38980)
  • [http2] Fix GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES for when BDP is disabled. (#39585)

Objective-C

  • [dep] Upgrade Protobuf Version 31.1. (#39916)

PHP

  • [PHP] Fully qualify stdClass with global namespace. (#39996)
  • [php] Fix PHPDoc so that UnaryCall defines the proper return type. (#37563)
  • fix typing of nullable parameters. (#39199)

Python

  • [EventEngine] Fix the issue with gRPC Python Client not reconnecting in certain situations: #38290, #39113, #39631. (#39894)
  • Fix gRPC Python docs website layout - use spaces optimally. (#40073)

Ruby

  • [Ruby] Add rubygems support for linux-gnu and linux-musl platforms . (#40174)
  • [ruby] enable EE fork support. (#39786)
  • [ruby] Return nil for c functions expected to return a VALUE. (#39214)
  • [ruby] remove connectivity state watch thread, fix cancellations from spurious signals. (#39409)
  • [ruby] Drop Ruby 3.0 support. (#39607)

下载链接