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

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

Open
titanism opened this issue Aug 8, 2024 · 2 comments

Comments

@titanism
Copy link
Contributor

titanism commented Aug 8, 2024

No description provided.

@titanism
Copy link
Contributor Author

titanism commented Aug 8, 2024

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 titanism changed the title Feature Request: Add onConnectionClose handler for custom logic when a socket is closed/disconnected Feature Request: Add onClose handler for custom logic when a socket is closed/disconnected Aug 8, 2024
@titanism
Copy link
Contributor Author

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).

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

No branches or pull requests

1 participant