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

Bug fix on relay slow path, adds debug_flags field. #234

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

jthomas43
Copy link
Contributor

PR Fixes a bug on the relay slowpath (when the optimistic udx__sendmsg returns UV_EAGAIN). The error code was checked for EAGAIN instead of UV_EAGAIN, and so it wouldn't trigger.

This PR also adds a udx->debug_flags field to make testing slow paths / error paths easier. For this case I added a FORCE_RELAY_SLOW_PATH flag to force taking the slow path. The plan is for more flags to increase test coverage.

@mafintosh mafintosh merged commit c0b01eb into holepunchto:main Dec 17, 2024
3 checks passed
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