starttls
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -109,8 +109,7 @@ /** | ||
// It's possible for a SecurePair to emit an 'error' event (see SecurePair.prototype.error in tls.js in at least node v0.8.21). | ||
securePair.on('error', function(err) { | ||
clearText.emit('error', err); | ||
}); | ||
// It's possible for a SecurePair to emit an 'error' event (see SecurePair.prototype.error in tls.js in at least node v0.8.21). This happens when a server closes the connection prematurely. | ||
securePair.on('error', onError); | ||
securePair.encrypted.on('error', onError); | ||
return clearText; | ||
} |
{ | ||
"name": "starttls", | ||
"description": "Upgrade a regular `net.Stream` connection to a secure `tls` connection.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/mattcg/starttls", |
5065
86