Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-up sslSelect logic for Windows #41

Merged
merged 2 commits into from
Jan 12, 2017

Conversation

kruton
Copy link
Contributor

@kruton kruton commented Jan 12, 2017

This allows Windows to work with parity for existing code. Interrupting
works and all the tests pass.

In the future, the #ifdefs could be split out into a different file
so we could include more strategies such as epoll or kqueue in the
future. However, this is only selecting on two objects.

Change-Id: Ia5c58b72e78aeac129f2987b99ce2a6d75448d32

This allows Windows to work with parity for existing code. Interrupting
works and all the tests pass.

In the future, the #ifdefs could be split out into a different file
so we could include more strategies such as epoll or kqueue in the
future. However, this is only selecting on two objects.

Change-Id: Ia5c58b72e78aeac129f2987b99ce2a6d75448d32

return count;
}
int vasprintf(char **ret, const char *format, va_list args);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to revert this now that I just merged #38

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Change-Id: Ie88e48096ff8e78936c2674747fbc7131a7bc61d
Copy link
Contributor

@nmittler nmittler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So many ifdefs :P

@kruton
Copy link
Contributor Author

kruton commented Jan 12, 2017

Yeah, I was writing this in a Windows VM with Notepad. I can clean it up in a real editor :)

@kruton kruton merged commit 6d788f5 into google:master Jan 12, 2017
@kruton kruton deleted the windows-select-compat branch January 12, 2017 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants