smtp-server
Advanced tools
Comparing version 1.14.0 to 1.14.1
# Changelog | ||
## v1.14.1 2016-08-16 | ||
* Ignore connection errors outside transaction | ||
## v1.14.0 2016-08-09 | ||
@@ -4,0 +8,0 @@ |
@@ -256,3 +256,6 @@ 'use strict'; | ||
SMTPConnection.prototype._onError = function (err) { | ||
if (err.code === 'ECONNRESET') { | ||
if ((err.code === 'ECONNRESET' || err.code === 'EPIPE') && | ||
(!this.session.envelope || !this.session.envelope.mailFrom)) { | ||
// We got a connection error outside transaction. In most cases it means dirty | ||
// connection ending by the other party, so we can just ignore it | ||
this.close(); // mark connection as 'closing' | ||
@@ -259,0 +262,0 @@ return; |
{ | ||
"name": "smtp-server", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "Create custom SMTP servers on the fly", | ||
@@ -21,4 +21,4 @@ "main": "lib/smtp-server.js", | ||
"grunt-mocha-test": "^0.12.7", | ||
"mocha": "^2.5.3", | ||
"smtp-connection": "^2.10.0" | ||
"mocha": "^3.0.2", | ||
"smtp-connection": "^2.11.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141716
2977