Skip to content

select: move duplicate select preparation code into Curl_select#5078

Closed
mback2k wants to merge 3 commits intocurl:masterfrom
mback2k:reuse-select-logic-once
Closed

select: move duplicate select preparation code into Curl_select#5078
mback2k wants to merge 3 commits intocurl:masterfrom
mback2k:reuse-select-logic-once

Conversation

@mback2k
Copy link
Copy Markdown
Member

@mback2k mback2k commented Mar 11, 2020

This introduces a re-used wrapper around select() to aid in Windows compatibility and timeout struct setup/preparation.

@mback2k mback2k force-pushed the reuse-select-logic-once branch from fc9d8e5 to 7944975 Compare March 11, 2020 13:11
@mback2k mback2k force-pushed the reuse-select-logic-once branch from 7944975 to 74b157b Compare March 11, 2020 13:16
@mback2k mback2k marked this pull request as ready for review March 11, 2020 16:28
@mback2k mback2k requested a review from bagder March 11, 2020 16:28
@mback2k mback2k self-assigned this Mar 11, 2020
@mback2k
Copy link
Copy Markdown
Member Author

mback2k commented Mar 11, 2020

Once this PR has landed my plan is to do a follow-up and tidy-up the int vs. time_t for timeouts.

@mback2k
Copy link
Copy Markdown
Member Author

mback2k commented Mar 14, 2020

Also the new Curl_select function could be used here then:

i = select(n + 1, &fds_read, &fds_write, NULL, &tv);

@mback2k
Copy link
Copy Markdown
Member Author

mback2k commented Mar 15, 2020

@bagder please take a look at my approach and approve the changes if you accept them.

@mback2k mback2k closed this in c52b342 Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants