Skip to content

Commit

Permalink
Backporting grpc Close fix (drand#1323)
Browse files Browse the repository at this point in the history
* Backporting grpc Close fix
* Bump version to avoid overwriting existing tag
  • Loading branch information
AnomalRoil authored Mar 12, 2024
1 parent 74a43d7 commit 5c8d15e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
var version = Version{
Major: 1,
Minor: 5,
Patch: 10,
Patch: 11,
Prerelease: "",
}

Expand Down
1 change: 1 addition & 0 deletions net/client_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ func (g *grpcClient) conn(p Peer) (*grpc.ClientConn, error) {
c, ok := g.conns[p.Address()]
if ok && c.GetState() == connectivity.Shutdown {
ok = false
c.Close()
delete(g.conns, p.Address())
metrics.OutgoingConnectionState.WithLabelValues(p.Address()).Set(float64(c.GetState()))
}
Expand Down

0 comments on commit 5c8d15e

Please sign in to comment.