Giter VIP home page Giter VIP logo

Comments (5)

zasweq avatar zasweq commented on June 4, 2024

Our GOAWAY handling is described in this RFC: https://httpwg.org/specs/rfc7540.html#rfc.section.6.8. When the server sends the first GOAWAY, it usually gives some time to the client to terminate the connection gracefully, before sending the second GOAWAY (at which point, the connection is hard closed). When the connection gets hard closed, the Channel can retry connecting at that point. Our built in client HTTP/2 transport handles these GOAWAY frames already (see https://github.com/grpc/grpc-go/blob/master/internal/transport/http2_client.go#L855).

from grpc-go.

SpecialYang avatar SpecialYang commented on June 4, 2024

But I receive the following error.

rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: NO_ERROR

Seems like the grpc client doesn't resolve the GOAWAY. I can't find any reason. Please help me.

from grpc-go.

SpecialYang avatar SpecialYang commented on June 4, 2024

@zasweq Sorry for ping. Could you help me to solve the above error? I can't find why this error will happen.

from grpc-go.

dfawley avatar dfawley commented on June 4, 2024

@SpecialYang Is the server you're talking to gRPC-Go? Can you give more data?

The client will reconnect when this happens. But the RPC has failed, and there's no way to prevent this from the client side. You'll need to retry the RPC. We can't do this automatically once the stream has been started, because it could be unsafe depending on the specific RPC's behavior.

from grpc-go.

github-actions avatar github-actions commented on June 4, 2024

This issue is labeled as requiring an update from the reporter, and no update has been received after 6 days. If no update is provided in the next 7 days, this issue will be automatically closed.

from grpc-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.