Git Product home page Git Product logo

Comments (4)

mindsolve avatar mindsolve commented on June 12, 2024

Hi @Jordan9232, a warm welcome to MineStat!

I think that exposing the ConnStatus should be possible without a problem.
What I am currently unsure of is whether that information is actually usable/useful? I haven't looked at the code for a few months, but in many cases we can't really determine a specific error cause. If the granularity Unknown (something failed in the protocol decoding), Timeout (connection timed out) and ConnFail (IP unreachable, port closed, other network errors) is enough, that should suffice and be possible.

Best regards,
MindSolve

from minestat.

Jordan9232 avatar Jordan9232 commented on June 12, 2024

To explain why it's usable/useful to me, in my case if ServerUp is false I want to display an error message to my users, but I want to use a different error message depending on ConnFail, Timeout, or Unknown. Those 3 different reasons are enough for me.

from minestat.

ldilley avatar ldilley commented on June 12, 2024

Progress

Variant Connection status exposed?
C# ✔️ (Merged PR #122)
Go
Java ✔️ (Merged PR #121)
JavaScript
PHP ✔️ (Merged PR #125)
Perl
PowerShell ✔️ (Merged PR #122)
Python ✔️ (Merged PR #135)
Ruby ✔️ (Merged PR #121)

from minestat.

ldilley avatar ldilley commented on June 12, 2024

As with issue #120, I'll resolve this issue now that PR #122 has been merged. The Go, JavaScript, and Perl subprojects will also contain this property once they gain feature parity with the other language variants.

from minestat.

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.