Comments (1)
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)
- undefined: sync.OnceFunc HOT 7
- Support passing context to `torrent.Reader` HOT 1
- How to config DHT listen port? HOT 4
- Add global semaphore to limit amount of pieceHashers
- Problem getting magnet metadata on large files HOT 6
- Client requests indefinitely on storage write errors HOT 42
- More than 3 times slow download speed over sqllite storage HOT 9
- Prioritize the use of local peers HOT 1
- Slow downloads while multiple large torrents are being downloaded. HOT 25
- panic: net/http: internal error: connCount underflow HOT 9
- listen tcp6 :42069: socket: address family not supported by protocol HOT 3
- ICE Servers config doesn't support authentication for TURN servers HOT 1
- hign cpu usage of sha1.blockAMD64 HOT 8
- Cannot download file from a not completed peer HOT 5
- Can't build [email protected] with go1.20 HOT 2
- Cannot use download subcmd to download what i seed torrent HOT 6
- Ignore malformed (optional) fields in metainfo.Load
- ratelimireader.go panic HOT 2
- Does repo support to build private dht bootstrap server? HOT 1
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 torrent.