Repository navigation
Description
I've opened this issue to collect and track all past, current and future problems related to timeouts.
Recently we have had problems with the live demo because the http_health_check binary does not have a timeout. Healthchecks started by the docker daemon are waiting forever if they don't receive a response, consuming more and more resources until the container crashes.
There are more places where we could have such problems. I'm going to describe here some places potentially affected by this type of issue.
Potentially affected code
Healthcheck binary
It's used in the tracker but also in the Index.
It's currently being fixed:
Tracker API
It uses Axum. All services using Axum have the same problem. For more info see the issue opened in the Index. It applies the same here.
HTTP Tracker
It also uses Axum.
UDP Tracker
We do not use any framework. We handle requests directly with a loop.
-
We don't have timeouts.
-
If I'm not wrong all requests are executed sequentially. We don't use threads. If one request takes forever for some reason the server can not handle more requests and there is no timeout.
@da2ce7 is working on some improvements like:
- Create a worker that can handle 50 requests at the most.
- It spawns a new thread for each request.
- It implements a graceful shutdown waiting for the active requests to finish when the application receives a halt signal.
I think he has not added yet the timeout feature.
By the way @WarmBeer since you are working on performance issues:
- Use dashmap for torrent in memory storage instead of the std hashmap #565
- Benchmark
Tracker.update_torrent_with_peer_and_get_statsperformance using Criterion #496
I wonder if improving the repository can improve the UDP tracker since requests are handled sequentially anyway or am I missing something @WarmBeer?
Tracker Checker
- Tracker Checker: handle UDP Tracker timeouts #682
- Tracker Checker: handle Health Check timeouts #678
- Tracker Checker: handle HTTP Tracker timeouts #679
- Tracker Checker: gracefully handle timeouts #677
Conclusion
There might be other cases.
Relates to:
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
mickvandijke commentedon Jan 24, 2024
Yeah the performance improvements I'm working on only improve parallel access to the torrent repository. Sequential access should be the same.
#565
josecelano commentedon May 15, 2024
All known issues on the server side have been solved. For the client side, @da2ce7 did it (at least for the Tracker Checker), but it's still pending to merge.
Merge #2813: fix(axum-server): [#2776] adopt axum-server 0.9 timeouts…
Merge #2830: chore(issues): archive closed issue #2776 spec to docs/i…
docs(issues): [#2776] record the disposition of #324, #603, #612 and #…
Merge #2849: docs(issues): record the disposition of #324, #603, #612 …
josecelano-bot commentedon Nov 16, 2026
Every item in this EPIC's checklist is now done: #597, #604, #609, #677, #678, #679 and #682 were already closed, and #612 and #613 are fixed by #2813 (tracked in #2776).
The tracker's request-rate and connection-limit gaps are not timeout issues; they are tracked in EPIC #2411 (case A1).
Disposition and evidence, recorded in the repo: related-issues.md. This issue can be closed once #612 and #613 are closed.
docs(issues): [#2776] record #324 as closed in the disposition
Merge #2899: docs(issues): [#2776] record #324 as closed in the dispo…