-
Notifications
You must be signed in to change notification settings - Fork 111
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
DATA-723 Set Max Message Size for SLAM to 32 MB (RDK) #1658
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
services/slam/builtin/builtin.go
Outdated
maxMsgSize := 32 * 1024 * 1024 | ||
maxMsgSizeOption := grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[opt] I'd put 32 * 1024 * 1024
directly into the function call and remove the maxMsgSize
variable, but I'd also add a comment saying why we're increasing the message size from 4MB to 32MB (see slam repo for an example).
|
gRPC limits the max size of bytes that can be sent to 4MB by default. The limit in most of RDK is 32MB however as slam spawns a separate grpc connection, this increase to the limit must be added here as well as to the SLAM service grpc system.
JIRA Ticket: DATA-723
Associated PR: #117