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

fix(vfs): race condition on temp file cleanup #77

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

andersevenrud
Copy link
Member

There was a race condition relating to streams in the VFS pipeline that could lead to unhandled rejection whenever a cleanup is performed on an endpoint with pre-check errors (like readonly).

Fixes os-js/OS.js#840

@andersevenrud
Copy link
Member Author

@maryam4s26 could you try this PR and checks if this fixes your errors in os-js/OS.js#840 ?

There was a race condition relating to streams in the
VFS pipeline that could lead to unhandled rejection
whenever a cleanup is performed on an endpoint with
pre-check errors (like readonly).
@andersevenrud andersevenrud force-pushed the fix/on-done-race-condition branch from ff816d2 to c1f9c2b Compare December 29, 2023 14:42
@andersevenrud andersevenrud merged commit 29882c7 into master Dec 29, 2023
5 of 6 checks passed
@andersevenrud andersevenrud deleted the fix/on-done-race-condition branch December 29, 2023 14:51
@maryam4s26
Copy link

@maryam4s26 could you try this PR and checks if this fixes your errors in os-js/OS.js#840 ?

hi @andersevenrud
I checked this PR. it is ok.

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.

Crashing the osjs when uploading a file in osjs mountpoint
2 participants