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

rpc: fix rare deadlock when canceling HTTP call context #19715

Merged
merged 1 commit into from
Jun 20, 2019

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Jun 13, 2019

When cancelling the context for a call on a HTTP-based client while the
call is running, the select in requestOp.wait may hit the <-context.Done()
case instead of the <-op.resp case. This doesn't happen often -- our
cancel test hasn't caught this even though it ran thousands of times
on CI since the RPC client was added.

Fixes #19714

When cancelling the context for a call on a HTTP-based client while the
call is running, the select in requestOp.wait may hit the <-context.Done()
case instead of the <-op.resp case. This doesn't happen often -- our
cancel test hasn't caught this even though it ran thousands of times
on CI since the RPC client was added.

Fixes ethereum#19714
@fjl fjl requested a review from holiman as a code owner June 13, 2019 13:39
@karalabe karalabe added this to the 1.9.0 milestone Jun 20, 2019
@karalabe karalabe merged commit 8d815e3 into ethereum:master Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http RPC deadlock
3 participants