Skip to content

docs: add FD_ZERO to curl_multi_fdset example#16325

Closed
piru wants to merge 1 commit intocurl:masterfrom
piru:master
Closed

docs: add FD_ZERO to curl_multi_fdset example#16325
piru wants to merge 1 commit intocurl:masterfrom
piru:master

Conversation

@piru
Copy link
Copy Markdown

@piru piru commented Feb 13, 2025

Minor improvement to the inlined curl_multi_fdset example. While the inline code examples aren't supposed to be full apps it might be a good idea to have at least the FD_ZERO in place. Of course full app using the curl_multi_fdset would likely also add their own fds to the set(s), too (since this is likely the main reason to use the function to begin with).

While the examples are not intended to complete applications this is
quite relevant for the correct function of the code.
@bagder bagder closed this in f138177 Feb 14, 2025
@bagder
Copy link
Copy Markdown
Member

bagder commented Feb 14, 2025

Thanks!

pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
While the examples are not intended to complete applications this is
quite relevant for the correct function of the code.

Closes curl#16325
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