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

fuse_t_session: Correctly handle EOF #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

griff
Copy link
Contributor

@griff griff commented Sep 29, 2023

The fuse-t session uses a socket pair for communication but wasn't correctly handling EOF and so when trying to gracefully unmount it would just hang. This change simply deals with EOF in the channel and returns None when it occurs during header read and an error otherwise.

@bergwolf
Copy link
Contributor

lgtm, but please cargo fmt your code, thanks!

@griff
Copy link
Contributor Author

griff commented Oct 11, 2023

lgtm, but please cargo fmt your code, thanks!

Done

@bergwolf
Copy link
Contributor

Still failing. You can run make check locally.

The fuse-t session uses a socket pair for communication but wasn't
correctly handling EOF and so when trying to gracefully unmount it
would just hang. This change simply deals with EOF in the channel and
returns None when it occurs during header read and an error otherwise.

Signed-off-by: Brian Olsen <[email protected]>
@griff
Copy link
Contributor Author

griff commented Oct 13, 2023

I have now run the check locally and fixed the issues found there.

@bergwolf
Copy link
Contributor

@griff

test macfuse_tests::integration_test_macfuse_hello has been running for over 60 seconds

I tried it locally and got the same results. Please help to fix it. You can reproduce by running make smoke-macos locally.

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