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

RcloneProvider: Don't notify on close() errors for read-only files #107

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

chenxiaolong
Copy link
Owner

When apps hold file descriptors open long after they stopped reading from them, the rclone backend network connections may have timed out. This isn't reported until close() is called. This was observed with at least the SFTP backend, but may occur with others too.

Since closing a read-only file has no impact on the data whatsoever, let's just hide the errors.

When apps hold file descriptors open long after they stopped reading
from them, the rclone backend network connections may have timed out.
This isn't reported until close() is called. This was observed with at
least the SFTP backend, but may occur with others too.

Since closing a read-only file has no impact on the data whatsoever,
let's just hide the errors.

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Dec 14, 2024
chenxiaolong added a commit that referenced this pull request Dec 14, 2024
Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong merged commit d9defe8 into master Dec 14, 2024
1 check passed
@chenxiaolong chenxiaolong deleted the close-error-read-only branch December 14, 2024 06:15
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