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

Close attachments #273

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Close attachments #273

merged 1 commit into from
Dec 23, 2023

Conversation

martinmanzo
Copy link
Contributor

I'm working with LOTS of mails with attachments on them and started getting OS errors stating that too many files were open.

I changed the code so to close the files after reading them in order to avoid potential memory leaks and other unexpected behaviors.

Test passed OK.

Copy link
Collaborator

@Pietro395 Pietro395 left a comment

Choose a reason for hiding this comment

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

it's a good change, I'll test it and if there are no problems (I don't think so) we can do the merge

@pfouque
Copy link
Collaborator

pfouque commented Dec 23, 2023

I agree, it looks safe but deserve to be tested! 😉

Copy link
Collaborator

@Pietro395 Pietro395 left a comment

Choose a reason for hiding this comment

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

LGTM

@Pietro395 Pietro395 merged commit dd37322 into coddingtonbear:master Dec 23, 2023
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.

3 participants