Skip to content

Conversation

edwardhey
Copy link

No description provided.

)

var (
clientStreamDescForProxying = &grpc.StreamDesc{
ServerStreams: true,
ClientStreams: true,
}
HandleEndCallback func(context.Context, *grpc.ClientConn)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better, IMO, to allow the stream director to handle connection management, rather than going through a global callback. This was implemented in #16, which is also available as a separate repo: https://github.com/vgough/grpc-proxy/blob/master/proxy/handler.go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants