Git Product home page Git Product logo

Comments (1)

anacrolix avatar anacrolix commented on May 29, 2024

Looking at the library, I could not find standardized ways to track or report errors. Tracker errors, connection errors, announce status, peer errors etc'.

There's no standard way to expose those errors. There is a related issue about it that I can't find right now.

What are the mechanisms in place? Which data is accessible to track the health of swarms, connections, trackers?

This is a pretty significant feature that doesn't seem visible or even implemented.

I can see the torrent object has multiple useful properties, but they are unexported, like func (t *Torrent) writeStatus(w io.Writer)

Would I need to fork this repo and expose these properties? (Like trackerAnnouncers)

Note: Another candidate may be var vars = expvar.NewMap("tracker/http") from http/tracker?

You are welcome to expose anything you require for your usage, the only reason I haven't done it myself is I don't want to invent requirements that I don't have myself. If I know that the interfaces exposed are in the form people are depending on I will be receptive to those PRs. I do use the Client.WriteStatus endpoint to debug some of the live/downstream services based on anacrolix/torrent. A handful of other interfaces exist for some client implementations, like the event pubsub stuff, and various queries available on pieces and torrents.

It will be worthwhile to run any code that end up exporting with the race detector enabled, it's very easy and common to introduce race conditions when doing that.

from torrent.

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.