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: ignore os.ErrClosed error on repeated FileStream close operations #6762

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

seiuneko
Copy link
Contributor

@seiuneko seiuneko commented Jul 13, 2024

Additionally, this resolves the issue where S3's PutObject returns a 500 status code, as seen in:
https://github.com/alist-org/alist/blob/9e0482afbb0d3490cf3d98d79fbd0f75b9ac6349/server/s3/backend.go#L315-L319
It also mitigates log spam caused by repeated file closures, detailed here:
https://github.com/alist-org/alist/blob/9e0482afbb0d3490cf3d98d79fbd0f75b9ac6349/internal/op/fs.go#L501-L505

Already tested by Alist S3 + restic S3 + 123pan

Also resolves the issue where S3 PutObject returns a 500 status code.
Copy link

welcome bot commented Jul 13, 2024

Thanks for opening this pull request! Please check out our contributing guidelines.

@xhofe xhofe merged commit 8278d38 into AlistGo:main Jul 14, 2024
3 checks passed
Copy link

welcome bot commented Jul 14, 2024

Congrats on merging your first pull request! We here at behavior bot are proud of you!

ForSourceCodeAnalysis pushed a commit to ForSourceCodeAnalysis/alist that referenced this pull request Aug 4, 2024
AlistGo#6762)

Also resolves the issue where S3 PutObject returns a 500 status code.
Three-taile-dragon pushed a commit to loognsss/blist that referenced this pull request Sep 26, 2024
AlistGo#6762)

Also resolves the issue where S3 PutObject returns a 500 status code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants