smtp-connection
Advanced tools
Comparing version 1.3.6 to 1.3.7
# Changelog | ||
## v1.3.7 2015-12-22 | ||
* Fixed an issue with Node v0.10 where too many events were cleared | ||
## v1.3.6 2015-12-19 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "smtp-connection", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "Connect to SMTP servers", | ||
@@ -5,0 +5,0 @@ "main": "src/smtp-connection.js", |
@@ -454,4 +454,9 @@ 'use strict'; | ||
SMTPConnection.prototype._upgradeConnection = function (callback) { | ||
this._socket.removeAllListeners(); | ||
// do not remove all listeners or it breaks node v0.10 as there's | ||
// apparently a 'finish' event set that would be cleared as well | ||
// we can safely keep 'error', 'end', 'close' etc. events | ||
this._socket.removeAllListeners('data'); // incoming data is going to be gibberish from this point onwards | ||
this._socket.removeAllListeners('timeout'); // timeout will be re-set for the new socket object | ||
var opts = { | ||
@@ -458,0 +463,0 @@ socket: this._socket, |
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
44369
991