5479067fab0a5d439ec437c3b8a8f2875a60be47
relayEmail opens a read stream on the .eml file for every relay, and only client.send() ever consumed it. When the auto-relay rules left no recipients, or the outgoing server failed the send (e.g. rejected a recipient), the stream was never read or destroyed and its file descriptor stayed open. Destroy it on the early return and in the finally block; after a successful send it is already fully read, so that is a no-op.
Description
My contributions to maildev/maildev: 8 commits, 1 merged PRs
89 KiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
100%