badeend opened PR #7423 from badeend:udp-tests
to bytecodealliance:main
:
No major functional changes:
- Moved the validation utility methods out of tcp.rs and into network.rs so that the UDP implementation can use them too.
- Extracted most platform compatibility fixes out into separate functions and moved them to a place where they can be used by UDP too.
- Applied those validations and compatibility fixes to the UDP implementation as well.
- Copied the TCP tests and adjusted them to work with UDP
badeend requested alexcrichton for a review on PR #7423.
badeend requested wasmtime-core-reviewers for a review on PR #7423.
alexcrichton submitted PR review:
Thanks!
Sort of a side-question as it's not directly related to this PR itself, where's all this error-handling code coming from? This seems extensive enough that the tests probably aren't exercising all the various cases here and I'm curious if you're porting from another library for example or something like that.
alexcrichton submitted PR review:
Thanks!
Sort of a side-question as it's not directly related to this PR itself, where's all this error-handling code coming from? This seems extensive enough that the tests probably aren't exercising all the various cases here and I'm curious if you're porting from another library for example or something like that.
alexcrichton created PR review comment:
Can this fail if the port is already bound? We've had issues with tests running concurrently in the past and I think the TCP test has a case where it handles failure to bind here.
badeend submitted PR review.
badeend created PR review comment:
Ah right. Hadn't noticed the TCP test changed recently. Yes, this UDP test needs the same update.
badeend updated PR #7423.
badeend submitted PR review.
badeend created PR review comment:
I've updated the test with the same workaround that's in the TCP test.
alexcrichton merged PR #7423.
Last updated: Nov 22 2024 at 17:03 UTC