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

Improve file access concurrency issues #139

Merged
merged 4 commits into from
Feb 8, 2021

Conversation

philbucher
Copy link
Member

this PR intends to tackle some concurrency issues in Win

The issue with Win is that the file cannot be deleted if another handle to it exists. This can be the case for us if the partner is checking if the file (still) exists. In this case it would crash.

I improved this situation by adding an index to the files such that the file names are "unique" and less concurrency issues occur (sometimes can still happen since I explicitly use some files for synchronization)

I had this idea in the past already to have a buffer of files to not block the caller aka make the comm more async.
Furthermore this can be very useful in the future if we want to keep the files (sort of as a history) for debugging

@philbucher philbucher changed the title Improve file concurrency issues Improve file access concurrency issues Feb 8, 2021
This was referenced Feb 8, 2021
@philbucher philbucher merged commit 7a9df2e into master Feb 8, 2021
@philbucher philbucher deleted the improve-file-concurrency-issues branch February 8, 2021 16:31
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.

1 participant