fix(nntp): add configurable connection idle timeout + cap prefetch at HTTP Range end#444
Conversation
|
The connection timeout is not really presented as the reason a nzb fails as well. This proxy: https://github.com/mjc/nntp-proxy Does a much better job of handling multiple servers then nzbdav, but it causes massive timeouts on nzbdav. Things that would take minutes to repair / process would be seconds with use of nntp proxy. I have figured out that you have to basically give first tier the absolute best NNTP servers lowest latency (and lowest REAL latency) which that nntp-proxy can give you metrics for, but nzbdav doesn't handle slower servers well. And when you get into a cascading failure where multiple backends are missing articles but one has it it can slow down the stream massively. I have had to add a very large amount of logic including handling fall back stream candidates where multiple NZB's are submitted to nzbdav then the stream player falls back when nzbdav starts to give out bytes slower then the player needs it switches over to a known good stream that is exactly the same (but a diff nzb). It does this by checking random bytes in the alternative nzb files and ensurings its the same as well making sure the length of the file inside is the same verifying its the same file just reuploaded. |
This change improves stuttering/stalling during playback with two changes: