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

If server is closing, then HELO etc commands should not be accepted #181

Open
titanism opened this issue Jun 11, 2022 · 1 comment
Open

Comments

@titanism
Copy link
Contributor

Here we have

_onCommand(command, callback) {
commands being parsed. However if the server is shutting down, commands such as HELO will still be accepted. Is there a way to add this feature, similar to how we can process onData, onRcptTo, etc? Then we could add if (this._closeTimeout) return setImmediate(() => callback(new Error('Server is shutting down'));.

@titanism titanism changed the title If server is closing, then If server is closing, then HELO commands should not be accepted Jun 11, 2022
@titanism
Copy link
Contributor Author

Title updated

@titanism titanism changed the title If server is closing, then HELO commands should not be accepted If server is closing, then HELO etc commands should not be accepted Jun 11, 2022
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