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

off-by-one issues with dir cookies #29

Merged
merged 2 commits into from
Mar 21, 2021
Merged

off-by-one issues with dir cookies #29

merged 2 commits into from
Mar 21, 2021

Conversation

willscott
Copy link
Owner

There was an issue in accounting for the implicit . and .. entries in directory listings that was part of the issue in #26

With this fix, I get the correct output on a linux machine. The described symptoms in #26 imply there may be a secondary issue in mac interactions, since it the disjoint of 27 vs 65 entries is likely that the subsequent pages of entries are not correctly fetched at all, not simply the off-by-two paging issue this commit fixes.

@willscott
Copy link
Owner Author

note that this issue only emerged with #24, since before that commit the server would respond to read-dir requests with all entries in one over-sized response.

@willscott
Copy link
Owner Author

found the potential issue on stale cookies, which is that when the root directory falls out of the file handle cache, bad things happen. Updated that handler to make sure it re-accesses the full directory path (somewhat inefficiently, admittedly) on accesses. I now cannot reproduce #24 on mac or linux clients.

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.

None yet

1 participant