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

udp: Add udp_set_source_membership binding + improve udp_set_membership #491

Merged
merged 5 commits into from
May 11, 2020

Conversation

squeek502
Copy link
Member

@squeek502 squeek502 commented May 11, 2020

  • Allows the interface argument of udp_set_membership to be nil (meaning a NULL const char* passed to uv_udp_set_membership). This was needed to be able to port the libuv multicast join tests
  • Adds a binding for udp_set_source_membership (contributes towards Remaining unbound functions #410)
  • Ports the test-udp-multicast-join and test-udp-multicast-join6 tests from libuv

Note that the added test cases might not be portable. Libuv has some special handling for specific platforms that hasn't been ported to luv:

EDIT: These might be solved by 46572c3 and 356968c

EDIT#2: Forced the OSX jobs to run and confirmed that the tests pass there: https://travis-ci.org/github/luvit/luv/builds/685548492

- Allows the interface argument of udp_set_membership to be nil (meaning a NULL const char* passed to uv_udp_set_membership). This was needed to be able to port the libuv multicast join tests
- Adds a binding for udp_set_source_membership (contributes towards luvit#410)
- Ports the test-udp-multicast-join and test-udp-multicast-join6 tests from libuv
@squeek502
Copy link
Member Author

squeek502 commented May 11, 2020

Valgrind failure is a libuv bug (same failure happens when running the Libuv test directly), will file an upstream issue.

EDIT: libuv/libuv#2840

@squeek502 squeek502 force-pushed the udp-set-source-membership branch from 5a9f2a8 to 46572c3 Compare May 11, 2020 07:48
squeek502 added 2 commits May 11, 2020 15:08
This will allow CI to pass in the meantime, and then we can revert this commit when we update to a fixed libuv version
@squeek502 squeek502 merged commit 83b9edf into luvit:master May 11, 2020
@squeek502 squeek502 mentioned this pull request May 11, 2020
49 tasks
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.

2 participants