Skip to content
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

docs: clarify SendMsg/CloseSend usage #2418

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

jeanbza
Copy link
Member

@jeanbza jeanbza commented Oct 30, 2018

No description provided.

@jeanbza jeanbza requested review from dfawley and menghanl October 30, 2018 21:06
stream.go Outdated Show resolved Hide resolved
@jeanbza jeanbza force-pushed the clarify_stream_close_docs branch 3 times, most recently from 0358e64 to d2a2a71 Compare November 1, 2018 17:20
stream.go Outdated Show resolved Hide resolved
@dfawley dfawley assigned jeanbza and unassigned dfawley Nov 1, 2018
@jeanbza jeanbza force-pushed the clarify_stream_close_docs branch from d2a2a71 to d71f681 Compare November 1, 2018 18:05
@jeanbza jeanbza assigned dfawley and unassigned jeanbza Nov 1, 2018
gopherbot pushed a commit to googleapis/google-cloud-go that referenced this pull request Nov 1, 2018
re: https://sponge.corp.google.com/target?id=98425512-e687-4419-a2c4-5296cb727ee1&target=cloud-go-libraries%2Fpresubmit%2Fgo111&searchFor=

TestStreamingPullAck has a data race because it relies on calling
spc.CloseSend concurrently with spc.Send, which is an unsafe
sequence of operations [1]. This CL switches the CloseSend out
for a context cancellation, which accomplishes the same thing
but is safe to use.

It also reduces the time to wait for dupes from 3s to 2s, to
speed up the test a bit.

1: grpc-go documentation being amended to describe this, see
here: grpc/grpc-go#2418

Change-Id: I254091a664a7d03852568473fa2038751fcc2718
Reviewed-on: https://code-review.googlesource.com/c/34890
Reviewed-by: Eno Compton <[email protected]>
@jeanbza jeanbza merged commit 61c3ec8 into grpc:master Nov 1, 2018
@dfawley dfawley added the Type: Documentation Documentation or examples label Nov 1, 2018
@dfawley dfawley added this to the 1.17 Release milestone Nov 1, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Documentation Documentation or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants