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

remove explicit fclose from S3->writeStream #26072

Merged
merged 1 commit into from
Mar 12, 2021
Merged

Conversation

icewind1991
Copy link
Member

streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error

Signed-off-by: Robin Appelman robin@icewind.nl

streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added this to the Nextcloud 22 milestone Mar 11, 2021
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Mar 11, 2021
@PVince81
Copy link
Member

reminds me of some old nightmares about the garbage collector and fclose errors as it was happening too late: owncloud/core#22370 (comment)

I hope this is obsolete nowadays.

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rullzer rullzer merged commit 98d2f3b into master Mar 12, 2021
@rullzer rullzer deleted the s3-no-explicit-close branch March 12, 2021 07:21
@kesselb
Copy link
Contributor

kesselb commented Mar 16, 2021

What do you think about a backport?

@kesselb
Copy link
Contributor

kesselb commented Mar 17, 2021

/backport to stable21

@kesselb
Copy link
Contributor

kesselb commented Mar 17, 2021

/backport to stable20

@kesselb
Copy link
Contributor

kesselb commented Mar 17, 2021

/backport to stable19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants