-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Expand service config support #1165
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
50d4175
Add client and service side apis for limiting the send/recv msg size.…
lyuxuan 13b5f12
merge master
lyuxuan a0b902a
fix missing import
lyuxuan ad16b94
fix gofmt goimports go tool vet errors
lyuxuan a66f923
Make initial service config non-blocking in Dial()
lyuxuan f02290b
Merge branch 'master' into service_config_pr
lyuxuan f1bb70f
gofmt
lyuxuan 6f8b553
fix the testMaxMsgSizeServerAPI failure
lyuxuan fa29686
Merge branch 'master' into service_config_pr
lyuxuan c6a3937
fix send response error case
lyuxuan 8788b75
merge master resolve conflicts
lyuxuan cb02ab4
change error message from InvalidArgument to ResourceExhausted
lyuxuan bab6b61
merge master
lyuxuan 983d837
update the merge of client api and sc
lyuxuan 9c5f260
make max size a pointer type and initialize function a CallOption
lyuxuan eaa9ccb
minor comment change
lyuxuan ecbc34a
move server defaults, delete defer cancel() in stream.go
lyuxuan ea230c7
update
lyuxuan 3ea2870
Merge branch 'master' into service_config_pr
lyuxuan d926544
remove unessary nil in return statement
lyuxuan 59426b3
gofmt
lyuxuan bdf9a64
add timeout test, add check or pointer filed in callOption, fix minor…
lyuxuan 35d77ea
merge master, resolve conflicts
lyuxuan 4d2b4b5
fix minor typo
lyuxuan 7505481
comments added
lyuxuan 504db8e
merge master
lyuxuan d19bbe8
change max message size functions name
lyuxuan ed64d51
remove unnecessary ok
lyuxuan 27ae147
remove some todo comments
lyuxuan cb64938
fix minor issues
lyuxuan 4a7b4d0
minor fix
lyuxuan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This ideally should be pushed into encode() instead. Otherwise, we will still be allocating more memory than desired. encode() gets the size before it allocates the buffer, so we can safe the work of encoding the object if we check it there after we get the size.