Sourced from google.golang.org/grpc's releases.
Release 1.62.0
New Features
- grpc: Add StaticMethod CallOption as a signal to stats handler that a method is safe to use as an instrument key (#6986)
Behavior Changes
- grpc: Return canonical target string from ClientConn.Target() and resolver.Address.String() (#6923)
Bug Fixes
- server: wait to close connection until incoming socket is drained (with timeout) to prevent data loss on client-side (#6977)
- Special Thanks:
@s-matyukevich
for discovering the root causePerformance Improvements
- *: Allow building without
x/net/trace
by usinggrpcnotrace
to enable dead code elimination (#6954)
- Special Thanks:
@hugelgupf
- rand: improve performance and simplify implementation of
grpcrand
by adoptingmath/rand
's top-level functions for go version 1.21.0 and newer. (#6925)
- Special Thanks:
@kmirzavaziri
Dependencies
- *: Use google.golang.org/protobuf/proto instead of github.com/golang/protobuf. (#6919)
- Special Thanks:
@Clement-Jean
[!NOTE] The above change in proto library usage introduces a minor behavior change within those libraries. The old
github.com/golang/protobuf
library would error if given anil
message toMarshal
, while the newgoogle.golang.org/protobuf
library will successfully output zero bytes in this case. This means server method handlers that didreturn nil, nil
will now return an empty message and no error, while it used to return an error. This also affects the client side, where clients sendingnil
messages used to fail without sending the RPC, and now they will send an empty message.
d715b2e
Change version to 1.62.0 (#6994)d706a42
cherry-pick #6926 to
1.62 release branch (#6986)8a4ca0c
cherry-pick #6977 to
1.62.x release branch (#6979)d41b01d
encoding: fix typo (#6966)c2b50ee
deps: fix backwards compatibility with encoding (#6965)05b4a8b
Revert "xds/googlec2p: use xdstp names for LDS (#6949)"
(#6964)03e76b3
grpc: add ability to compile with or without tracing (#6954)84b85ba
xds/googledirectpath: Check if ipv6 address is non empty (#6959)6f63f05
internal/grpcrand: use Go top-level random functions for go1.21+ (#6925)cd69b5d
.*: fix minor linter issues (#6958)