Repository navigation
Conversation
This commit prevents ClientCalls from making an initial request for response messages when the user provides a ClientResponseObserver that has disabled auto inbound flow control by calling ClientCallStreamObserver.disableAutoInboundFlowControl() in beforeStart. The previous behaviour was confusing and undersirable for observers trying to implement their own flow control, as values were produced before they were requested. This behaviour was mentioned in grpc#1788 (comment) The initial requests are still made for ResponseObservers that haven't disabled auto inbound flow control.
barnardb
force-pushed
the
no-initial-request-when-flow-control-disabled
branch
from
March 14, 2018 23:24
3bcd619 to
f9e57a1
Compare
Member
|
We shouldn't change the behavior of |
Author
|
Ah, I see. I should have read that comment more clearly. I could have a go at that approach. Have you had any further thoughts on an appropriate name? |
Member
|
We discussed it today. We're going to go with |
Contributor
|
Hi @barnardb friendly ping on this PR. |
Member
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This commit prevents ClientCalls from making an initial request for
response messages when the user provides a ClientResponseObserver that
has disabled auto inbound flow control by calling
ClientCallStreamObserver.disableAutoInboundFlowControl() in beforeStart.
The previous behaviour was confusing and undersirable for observers
trying to implement their own flow control,
as values were produced before they were requested.
This behaviour was mentioned in
#1788 (comment)
The initial requests are still made for ResponseObservers that haven't
disabled auto inbound flow control.