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

On MacOS, tests hangs. #274

Merged

Conversation

karlseguin
Copy link
Contributor

src/loop.zig Outdated
@@ -291,4 +291,11 @@ pub const SingleThreaded = struct {
report("recv done, remaining events: {d}", .{old_events_nb - 1});
}
}

pub fn canCancel() bool {
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure about adding a function into the API only for test purpose.
What about running the cancel test only under linux for now?

@krichprollsch
Copy link
Member

Indeed cancel is implemented only for IO_Uring,.. I didn't notice the test would hangs on macos.
I suppose it could generate issue w/ the browser on macos too.

This is an argument to move to https://github.com/mitchellh/libxev in the future.

Rename canCancel to isCancelAvailable which seems more descriptive.
@krichprollsch krichprollsch merged commit 88a8384 into lightpanda-io:main Feb 6, 2025
6 checks passed
@karlseguin karlseguin deleted the skip_cancel_tests_on_macos branch February 7, 2025 10:55
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