Giter Club home page Giter Club logo

Comments (3)

PatrLind avatar PatrLind commented on May 27, 2024

This still seems to be an issue if the server panics or if the connection isn't shut down correctly.
Not always, but most of the time... Not sure yet as of the exact circumstances.

An example error is:

Unavailable (14)
all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: error while dialing: dial tcp [::1]:8761: connectex: No connection could be made because the target machine actively refused it."

The server is restarted and up and running, a restart of grpcui fixes it

from grpcui.

jhump avatar jhump commented on May 27, 2024

@PatrLind, that appears to be a different issue due to this part of the error message:

No connection could be made because the target machine actively refused it.

I suspect that is caused by a failure to reconnect when the server was down, and then RPC client using exponential backoff before re-trying to connect. So you may have caught it after its connection attempt was refused but before it re-tried the connection.

So I don't think grpcui needed to be restarted -- I think perhaps you needed to wait a little longer for the connection to heal. If you can try to verify that and if that's the case (it does eventually heal), file it as a different bug. If it never heals, try using -vv logging options and include the log output.

from grpcui.

PatrLind avatar PatrLind commented on May 27, 2024

I can confirm that it is indeed caused by the exponential backoff.
I understand that grpcui uses the default grpc backoff settings (max 2 minutes), right?
Would it be possible to either change this to maybe a few seconds by default, or perhaps (better) add a configuration flag to set the BackoffConfig.MaxDelay?

from grpcui.

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.