-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc error: code = Internal desc = transport: SendHeader called multiple times #51
Labels
Comments
Client-side error (Java SDK):
|
Hello, this is my first experience with open source contributions. Would really appreciate it if you explained exactly what is needed to be done. I would love to work on this issue. Thanks in advance! :) |
@sczyh30 This seems to be caused by too fast a send rate. control_plane.go:96 const sendInterval = 100 * time.Millisecond
func (c *ControlPlane) sendMessageToStream(stream model.OpenSergoTransportStream, namespace, app, kind string, dataWithVersion *trpb.DataWithVersion, status *trpb.Status, respId string) error {
if stream == nil {
return nil
}
err := stream.SendMsg(&trpb.SubscribeResponse{
Status: status,
Ack: "",
Namespace: namespace,
App: app,
Kind: kind,
DataWithVersion: dataWithVersion,
ControlPlane: c.protoDesc,
ResponseId: respId,
})
if err != nil {
return err
}
time.Sleep(sendInterval)
return nil
} or func (c *ControlPlane) sendMessageToStream(stream model.OpenSergoTransportStream, namespace, app, kind string, dataWithVersion *trpb.DataWithVersion, status *trpb.Status, respId string) error {
if stream == nil {
return nil
}
c.mux.Lock()
defer c.mux.Unlock()
return stream.SendMsg(&trpb.SubscribeResponse{
Status: status,
Ack: "",
Namespace: namespace,
App: app,
Kind: kind,
DataWithVersion: dataWithVersion,
ControlPlane: c.protoDesc,
ResponseId: respId,
})
} reference: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Type: bug report
Describe what happened
Error occurred when CRD changes received:
Tell us your environment
OpenSergo control plane v0.1.0
Anything else we need to know?
NONE
The text was updated successfully, but these errors were encountered: