Skip to content

fix: round timeouts up and saturate them, so only zero waits without limit - #440

Merged
devopvoid merged 1 commit into
mainfrom
fix/timeout-conversions
Oct 24, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/timeout-conversions

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

A positive timeout shorter than the unit it is waited in became zero, which HttpURLConnection and the media reader take as no limit; one too long to count threw later or became zero as well.

Timeouts now checks and converts every timeout of the client API and the media reader in one place: rounded up, saturated, and only a given zero means no limit. The native reader saturates its deadline too.

…limit

A positive timeout under the unit it is waited in came out as zero, which
HttpURLConnection and the media reader take as no limit, and one too long to
count failed or also came out as zero. Timeouts now converts every timeout in
one place, and the native reader saturates its deadline.
@devopvoid
devopvoid merged commit da4b832 into main Oct 24, 2026
25 checks passed
@devopvoid
devopvoid deleted the fix/timeout-conversions branch October 24, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant