-
Notifications
You must be signed in to change notification settings - Fork 21.6k
rpc: avoid unnecessary RST_STREAM, PING frames sent by client #33122
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
Conversation
|
Thanks for the context. I like the change, but I think we can handle this just within package rpc. You tried to fix all occurences of |
7b46a68 to
932ef7c
Compare
Sure thing. I've limited the change to just the |
|
@joshua-kim also created an issue for this to be fixed upstream here: golang/go#76239 Until it is addressed there though, I think this would be a helpful workaround to provide for anyone using |
|
Thanks for the patch! |
…um#33122) Context from Cloudflare blog: https://blog.cloudflare.com/go-and-enhance-your-calm/#reading-bodies-in-go-can-be-unintuitive We were able to reproduce the same issue discussed by Cloudflare in their recent blog post above using the `ethclient`.
…um#33122) Context from Cloudflare blog: https://blog.cloudflare.com/go-and-enhance-your-calm/#reading-bodies-in-go-can-be-unintuitive We were able to reproduce the same issue discussed by Cloudflare in their recent blog post above using the `ethclient`.
…um#33122) Context from Cloudflare blog: https://blog.cloudflare.com/go-and-enhance-your-calm/#reading-bodies-in-go-can-be-unintuitive We were able to reproduce the same issue discussed by Cloudflare in their recent blog post above using the `ethclient`.
…um#33122) Context from Cloudflare blog: https://blog.cloudflare.com/go-and-enhance-your-calm/#reading-bodies-in-go-can-be-unintuitive We were able to reproduce the same issue discussed by Cloudflare in their recent blog post above using the `ethclient`.
Context from Cloudflare blog: https://blog.cloudflare.com/go-and-enhance-your-calm/#reading-bodies-in-go-can-be-unintuitive
We were able to reproduce the same issue discussed by Cloudflare in their recent blog post above using the
ethclient.Running the below script using the latest go-ethereum against RPC endpoints with HTTP2 defenses similar to Cloudflare's (i.e.
go run main.go --url https://api.avax-test.network/ext/bc/C/rpc) results in a number of GOAWAY errors due the client sending many unnecessary PING and RST_STREAM frames.Running the same script with the fix in this PR results shows that those GOAWAY errors to go away. 🙂