v1.64.0
版本发布时间: 2024-05-15 07:06:29
grpc/grpc-go最新发布版本:v1.66.0(2024-08-28 17:40:53)
API Changes
- stats: Deprecate
InPayload.Data
andOutPayload.Data
; they were experimental and will be deleted in the next release (#7121)
Behavior Changes
- codec: Remove handling of environment variable
GRPC_GO_ADVERTISE_COMPRESSORS
to suppress setting supported compressors ingrpc-accept-encoding
header. Compressors will always be advertised, as they have been by default for some time (#7203)
New Features
- resolver/dns: Add
SetMinResolutionInterval
to set the minimum interval at which DNS re-resolutions may occur (#6962)- Special Thanks: @HomayoonAlimohammadi
- peer/peer: Implement the
fmt.Stringer
interface for pretty printingPeer
, and - metadata/metadata: Implement the
fmt.Stringer
interface for pretty printingMD
(#7137)- Special Thanks: @AnomalRoil
Performance Improvements
- client: Improve RPC performance by reducing work while holding a lock (#7132)
Bug Fixes
- transport/server: Display the proper timeout value when keepalive pings are not ack'd in time (#7038)
- Special Thanks: @BatmanAoD
- channelz: Fix bug that was causing the subchannel's target to be unset (#7189)
- stats: Fix bug where peer was not set in context when calling stats handler for
OutPayload
,InPayload
, andEnd
(#7096)
Dependencies
- deps: Remove dependency on deprecated
github.com/golang/protobuf
module (#7122)
Documentation
- grpc: Deprecate
WithBlock
,WithReturnConnectionError
,FailOnNonTempDialError
which are ignored byNewClient
(#7097)- Special Thanks: @pellared
- grpc: Deprecate
Dial
andDialContext
. These will continue to be supported throughout 1.x, but are deprecated to direct users toNewClient
(See #7090 for more information) - examples: Add custom lb example (#6691)