Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/fxconfig/internal/client/orderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func (oc *OrdererClient) send(ctx context.Context, env *cb.Envelope) error {
if err != nil {
return err
}
// Signal end-of-send so the orderer can terminate the stream and the
// underlying connection isn't held until ctx cancellation. Without
// this each error path leaked the broadcast stream (#209).
defer func() { _ = abc.CloseSend() }()

err = abc.Send(env)
if err != nil {
Expand Down