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

Fixes for sockets #4211

Merged
merged 19 commits into from
Sep 18, 2023
Merged

Fixes for sockets #4211

merged 19 commits into from
Sep 18, 2023

Conversation

john-sharratt
Copy link
Contributor

@john-sharratt john-sharratt commented Sep 11, 2023

  • Disabled DONTROUTE which was breaking networking
  • Removed some potential race conditions on the handlers being registered at the wrong times
  • Removed the unsafe code and replaced it with a token system
  • Implemented a poll call for host based networking which better represents reality
  • Implemented a unit test so that this does not happen again

- When registering a handler twice it would fail the second time
- DONTROUTE was being set which basically breaks all networking
- Poll was registered on the wrong events (this was introduced in this patch earlier rather than from mainline)
- The writable event was being triggered at the wrong time (i.e. either too early or two late) - converted to a non-blocking poll call instead
- Added a unit test so that this doesn't happen again
@john-sharratt john-sharratt marked this pull request as ready for review September 12, 2023 00:15
- Fixed the windows build issues
- Fixed some linting errors
- Fixed some epoll backwards compatible issues
- Implemented a unit tests for epoll to google
lib/virtual-io/src/selector.rs Outdated Show resolved Hide resolved
lib/virtual-io/src/selector.rs Outdated Show resolved Hide resolved
@ptitSeb ptitSeb merged commit b3dde1a into master Sep 18, 2023
53 checks passed
@ptitSeb ptitSeb deleted the fixes-for-sockets branch September 18, 2023 10:24
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.

3 participants