Skip to content

fix: no async polling deadline on zero timeout#233

Merged
teskje merged 1 commit into
nextfrom
jan/fix-async-polling-timeout
May 28, 2026
Merged

fix: no async polling deadline on zero timeout#233
teskje merged 1 commit into
nextfrom
jan/fix-async-polling-timeout

Conversation

@teskje
Copy link
Copy Markdown
Contributor

@teskje teskje commented May 28, 2026

The Timeout class documents that a timeout value of Duration.ZERO means "no timeout". This requires special treatment in the Deadline class used by async polling, which would otherwise interpret a zero timeout as "a timeout after zero nanoseconds".

Found by bugbot on the release PR.

The `Timeout` class documents that a timeout value of `Duration.ZERO`
means "no timeout". This requires special treatment in the `Deadline`
class used by async polling, which would otherwise interpret a zero
timeout as "a timeout after zero nanoseconds".
@teskje teskje force-pushed the jan/fix-async-polling-timeout branch from adafc6a to c7d2d33 Compare May 28, 2026 13:35
@teskje teskje marked this pull request as ready for review May 28, 2026 13:43
@teskje teskje requested a review from benesch May 28, 2026 13:51
@teskje teskje merged commit 755bad5 into next May 28, 2026
8 checks passed
@teskje teskje deleted the jan/fix-async-polling-timeout branch May 28, 2026 15:39
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.

2 participants