Skip to content

Cleanup hijacked gRPC connections in buildkit controller #6604

Closed

Description

@jedevc

See #6603.

We need to make sure to close conn here, or closeCh blocks forever!

conn, closeCh, hijackmd := grpchijack.Hijack(stream)
// TODO: this blocks if opts.RegisterClient and an error happens
// TODO: ? defer conn.Close()
go func() {
<-closeCh
cancel()
}()

However, it looks like something goes wrong and TestModuleLotsOfFunctions times out: #6597 (comment)

cc @sipsma

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions