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

If two clients ls at the same time, we get stuck in a Size() loop #3

Open
henesy opened this issue Aug 10, 2020 · 1 comment
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@henesy
Copy link
Owner

henesy commented Aug 10, 2020

Readdir() and Size() will be stuck in a loop if two clients call an ls at the same time.

This is due to Readdir() not tracking state, some kind of concurrent fix needs to occur that's better than the current channel-reset solution.

@henesy henesy added bug Something isn't working help wanted Extra attention is needed labels Aug 10, 2020
@henesy
Copy link
Owner Author

henesy commented Aug 10, 2020

Note that while ls may break on the directory, reading/writing, etc. of the files still succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant