nodemailer / wildduck

Opinionated email server
https://wildduck.email/
European Union Public License 1.2
1.92k stars 268 forks source link

Feature Request: Add `onClose` handler for custom logic when a socket is closed/disconnected #721

Open titanism opened 3 months ago

titanism commented 3 months ago

This would need implemented for IMAP/POP3. Right now the only way (other than adding custom listeners) is to modify IMAP notifier logic, specifically releaseConnection function.

titanism commented 2 months ago

Bumping this request, as there's no current way to prevent connection overflow.

For example, any user can spawn 10000+ connections to a server and there is no application-layer functionality that can prevent this (other than if you were to write a loop or something on the IMAP/POP3 server instances and iterate over this.connections, which seems like an anti-pattern as opposed to using onConnect and onClose like we have in smtp-server).

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 15 days.

titanism commented 1 month ago

Bump