Closed martinmanzo closed 8 months ago
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.
I agree, it looks safe but deserve to be tested! 😉
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.