Comments (10)
can you share your private reproduction?
On Sun, Apr 12, 2015 at 6:44 PM, David Symonds [email protected]
wrote:
If I have a single gRPC connection and flood it such that a bunch of RPCs
end up timing out, the connection gets into an unrecoverable state. Any
future RPCs that should otherwise work end up failing with errors like
rpc error: code = 13 desc = "transport: HPACK header decode error:
decoding error: invalid indexed representation index 82"
(and the index increments over time).I traced it to the http2 hpack decoder, which has d.parseHeaderFieldRepr
returning an error. Somewhere after that, though, I'd expect the connection
to recognise that it is stuck and automatically reset. But it doesn't.I have a private reproduction that appears to be able to reproduce this
100% of the time. I haven't tried reproducing it with a smaller test case
yet.I don't know who is at fault, grpc-go or http2. But it shouldn't be
possible to send a bunch of RPCs on a gRPC connection such that the
connection ends up poisoned./cc @bradfitz https://github.com/bradfitz in case he has thoughts.
—
Reply to this email directly or view it on GitHub
#164.
from grpc-go.
Not publicly, no. I can try to create a self-contained reproduction case though.
from grpc-go.
grpc should treat it as ConnectionError so that reconnect is triggered (now
it is a StreamError). I am generating a pull request now. But this error is
not expected and we should figure out the root cause. It seems the hpack
state is messed up either due to a miss use in grpc or a bug in hpack impl.
On Sun, Apr 12, 2015 at 7:20 PM, Qi Zhao [email protected] wrote:
can you share your private reproduction?
On Sun, Apr 12, 2015 at 6:44 PM, David Symonds [email protected]
wrote:If I have a single gRPC connection and flood it such that a bunch of RPCs
end up timing out, the connection gets into an unrecoverable state. Any
future RPCs that should otherwise work end up failing with errors like
rpc error: code = 13 desc = "transport: HPACK header decode error:
decoding error: invalid indexed representation index 82"
(and the index increments over time).I traced it to the http2 hpack decoder, which has d.parseHeaderFieldRepr
returning an error. Somewhere after that, though, I'd expect the connection
to recognise that it is stuck and automatically reset. But it doesn't.I have a private reproduction that appears to be able to reproduce this
100% of the time. I haven't tried reproducing it with a smaller test case
yet.I don't know who is at fault, grpc-go or http2. But it shouldn't be
possible to send a bunch of RPCs on a gRPC connection such that the
connection ends up poisoned./cc @bradfitz https://github.com/bradfitz in case he has thoughts.
—
Reply to this email directly or view it on GitHub
#164.
from grpc-go.
Okay. I'll wait to see your pull request and can test it easily enough.
from grpc-go.
Hi David,
not in good condition to work today. The pull request will be made later.
Sorry about that. It would be great to have a self-contained reproduction
from you so that I can investigate what is going on here. Thanks.
On Sun, Apr 12, 2015 at 7:50 PM, David Symonds [email protected]
wrote:
Okay. I'll wait to see your pull request and can test it easily enough.
—
Reply to this email directly or view it on GitHub
#164 (comment).
from grpc-go.
okay, it seems I can reproduce it by running TestRPCTimeout test cases a few thousand times. will look into it.
from grpc-go.
Thanks. I haven't had time to create a reproduction from my code, so it's good that you've been able to reproduce it yourself. I can verify a fix that you come up with.
from grpc-go.
should be fixed via #165. will have another pull request to make it connection though.
from grpc-go.
s/connection/connection error/
from grpc-go.
Yep, I can no longer reproduce the problem. Thanks!
from grpc-go.
Related Issues (20)
- Client waits with DNS query when no channel's available HOT 6
- Profile Guided Optimization results in high memory usage HOT 6
- Make server workers channel buffered? HOT 11
- xdsresolver uses ldsResourceName instead of using data plane authority HOT 2
- Question: PING frame HOT 7
- Call grpc.Invoke with nil "opts ...CallOption" throw a "invalid memory address or nil pointer dereference" and panics HOT 3
- Does gRPC-go URL encode `/`'s from xDS dial target HOT 1
- Stabilize `UseCompressor` and `SetSendCompressor` HOT 1
- subChannel triggerDelete lead to dead loop HOT 5
- xds: ADS stream failure triggers wildcard subscriptions on new stream HOT 11
- Context cancellation when request finishes HOT 1
- New `Compressor`: Support metadata other than `Name` for trained compression HOT 8
- Why does `/internal/transport/proxy.go` `doHTTPConnectHandshake` call `resp.Body.Close()`? HOT 1
- retry: Status should indicate more details when retries are enabled and an RPC fails HOT 6
- gRPC error ResourceExhausted should include payload size in error details HOT 2
- codegen: Use Go generics for stream types HOT 4
- grpc processes connection data to start multiple Goroutines, and whether Goroutines can be merged to reduce additional overhead HOT 2
- A potential deadlock or goleak HOT 3
- Breaking Change: xds `Return no matching virtual host found` error HOT 6
- Errors such as "frame too large" and "PROTOCOL_ERROR" occurred with Unix domain socket on Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-go.