Skip to content

examples: simplify timeout handling in multi-uv.c - #23408

Closed
pszemus wants to merge 1 commit into
curl:masterfrom
pszemus:patch-1
Closed

pszemus wants to merge 1 commit into
curl:masterfrom
pszemus:patch-1

Conversation

@pszemus

@pszemus pszemus commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Removed check for zero timeout in multi-uv.c - a libuv timer with timeout 0 fires on the next loop iteration (https://docs.libuv.org/en/v1.x/timer.html#c.uv_timer_start).

Removed check for zero timeout in multi-uv.c - a libuv timer with timeout 0 fires on the next loop iteration (https://docs.libuv.org/en/v1.x/timer.html#c.uv_timer_start).
@bagder

bagder commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in b1dc227 Oct 15, 2026
@pszemus

pszemus commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Note for future generations: timeout=0 in uv_timer_start is safe from libuv 1.48.0 onward (libuv/libuv@51a22f60).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants