-
Notifications
You must be signed in to change notification settings - Fork 4.5k
grpc: introduce new DialOption and ServerOption to configure initial window size without disabling BDP estimation. #8283
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
0c8d8c3
Add new Dial/ServerOptions to set the size
vinothkumarr227 3f776f2
Added test and fix vet errors
vinothkumarr227 a55c070
small tweaks
vinothkumarr227 21f3aae
Added test
vinothkumarr227 68f1322
Fixed the review changes
vinothkumarr227 699cb70
credentials, transport, grpc : add a call option to override the :aut…
eshitachandwani ab9e865
xds: generic lrs client for load reporting (#8250)
purnesh42H e72ed5b
otel: Test streaming rpc sequence numbers (#8272)
vinothkumarr227 541c8ce
[alts] Add plumbing for the bound access token field in the ALTS Star…
matthewstevenson88 5f9eeb4
stats/opentelemetry: separate out interceptors for tracing and metric…
janardhanvissa 2cb07fd
xds_test: Wait for server to enter serving mode in RBAC test (#8287)
arjan-bal d077278
internal/delegatingresolver: avoid proxy if networktype of target add…
eshitachandwani b2c9036
[alts] add keepalive params to the alts handshaker client dial option…
rockspore 22cf9e1
weightedroundrobin: Remove nil embedded SubConn from endpointWeight (…
arjan-bal 2d3f20d
transport: skip Status.Proto() without details in writeStatus (#8282)
evanj b94efb5
grpc: Update ClientStream.CloseSend docs (#8292)
arjan-bal d05b590
xds: modify generic clients grpctransport to accept optional custom g…
purnesh42H c127d5f
resolver/delegatingresolver: wait for proxy resolver to be built in t…
eshitachandwani 21da04b
xds: add MetricsReporter for generic xds client (#8274)
purnesh42H 909bf84
credentials/local: implement ValidateAuthority (#8291)
eshitachandwani e54e81b
health: Add List method to gRPC Health service (#8155)
marcoshuck d21bc12
Update CONTRIBUTING.md (#8300)
dfawley cfaf50d
cleanup: replace dial with newclient (#8196)
janardhanvissa b422fce
Fixed the review changes
vinothkumarr227 605c49d
Merge branch 'master' into fix-window-size-bdp
vinothkumarr227 7a77cde
small tweaks
vinothkumarr227 127227a
small tweaks
vinothkumarr227 ac71fae
Fixed the test cases issues
vinothkumarr227 e5b7e2b
Fixed the review changes
vinothkumarr227 d3a6773
small tweaks
vinothkumarr227 0b2d748
Added test cases
vinothkumarr227 a3c4701
Fixed the review changes
vinothkumarr227 9abcf34
Fixed the review changes
vinothkumarr227 838385e
Remove static
vinothkumarr227 7ba8859
Fixed the dynamic window size isssues
vinothkumarr227 382ef30
Fixed the test cases
vinothkumarr227 48c91da
Fixed the window size
vinothkumarr227 cf685db
Fixed the review changes
vinothkumarr227 35a2253
Fixed the test cases
vinothkumarr227 6ec9e7d
Fixed the review changes
vinothkumarr227 efe83f4
small tweaks
vinothkumarr227 6d355fb
Fixed the test cases
vinothkumarr227 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -225,6 +225,22 @@ func WithInitialConnWindowSize(s int32) DialOption { | |||||||||||
}) | ||||||||||||
} | ||||||||||||
|
||||||||||||
// WithStaticStreamWindowSize returns a DialOption to set the static initial | ||||||||||||
// stream window size. | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||||||
func WithStaticStreamWindowSize(s int32) DialOption { | ||||||||||||
return newFuncDialOption(func(o *dialOptions) { | ||||||||||||
o.copts.StaticStreamWindowSize = s | ||||||||||||
}) | ||||||||||||
} | ||||||||||||
|
||||||||||||
// WithStaticConnWindowSize returns a DialOption to set the static initial | ||||||||||||
// connection window size. | ||||||||||||
func WithStaticConnWindowSize(s int32) DialOption { | ||||||||||||
return newFuncDialOption(func(o *dialOptions) { | ||||||||||||
o.copts.StaticConnWindowSize = s | ||||||||||||
}) | ||||||||||||
} | ||||||||||||
|
||||||||||||
// WithMaxMsgSize returns a DialOption which sets the maximum message size the | ||||||||||||
// client can receive. | ||||||||||||
// | ||||||||||||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Is there some special interaction here with these and Join? I don't think there's much need for this test, since it just tests
Join
, but we already have a test for that.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.
Done