Don't close the VERP Server on error. And improved error reporting.
Based on https://git.io/vQLS7 , I believe the change introduced in https://git.io/vQL7u "server.close()" to be in error, and intended to close one connection, like it’s handled in https://git.io/vQLSF Perhaps SMTPServer isn't even meant to throw ECONNRESET and EPIPE in the first place.
This commit is contained in:
parent
277b2cadf5
commit
963aef53b5
3 changed files with 62 additions and 16 deletions
|
@ -164,6 +164,10 @@ let mailBoxServer = http.createServer((req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
mailBoxServer.on('error', err => {
|
||||
log.error('Test SMTP Mailbox Server', err);
|
||||
});
|
||||
|
||||
module.exports = callback => {
|
||||
if (config.testserver.enabled) {
|
||||
server.listen(config.testserver.port, config.testserver.host, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue