Repository navigation
fix: stream hosts get 6 s to answer before refryt tries a mirror - #39
Merged
Merged
Conversation
The first-byte probe and each proxy range now share one deadline, 6 s, up from 5 s, so a slow but working connection has more room. A reachable host answered in 0.06-0.75 s in testing. mpv's curl-connect-timeout follows it; it only exists on mpv built with libcurl (0.42 and our Windows libmpv), where it defaults to 30 s per dead host. The README line about mirrors is dropped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #35.
STREAM_DEADLINE, now 6 s instead of 5 s, so a slow but working connection has more room. On 10 real stream URLs a reachable host answered in 0.06–0.75 s, cold.curl-connect-timeoutis 6 s too. The option only exists on mpv built with libcurl (0.42, and the Windows libmpv we bundle), where the default is 30 s per dead host. That's the 30 s in Playback hangs when YouTube assigns a stream node this machine cannot reach #36. Linux's mpv 0.41 ignores it.The check before yt-dlp URLs go to mpv stays. It accepted the guest User-Agent on all 10 URLs and adds about 0.1 s, on the under 1% of plays that use yt-dlp.
refryt-resolve: fmt, clippy-D warningsand tests pass with and withoutnative-resolver.