Skip to content

Commit 728b7c9

Browse files
committed
Merge pull request #586 from solomon23/tls-error
tls socket missing error listener
2 parents 220c5fd + 48b5537 commit 728b7c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/connection.js

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ Connection.prototype.connect = function(port, host) {
8989
});
9090
self.attachListeners(self.stream);
9191
self.emit('sslconnect');
92+
93+
self.stream.on('error', function(error){
94+
self.emit('error', error);
95+
});
9296
});
9397
};
9498

0 commit comments

Comments
 (0)