1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Indicate transmission errors

This commit is contained in:
Ruben Bridgewater
2016-03-14 22:55:01 +01:00
parent ff19663d9d
commit 6598da5366
2 changed files with 10 additions and 15 deletions

View File

@@ -233,8 +233,8 @@ RedisClient.prototype.create_stream = function () {
self.on_error(err);
});
this.stream.once('close', function () {
self.connection_gone('close', new Error('Stream connection closed'));
this.stream.once('close', function (hadError) {
self.connection_gone('close', new Error('Stream connection closed' + (hadError ? ' because of a transmission error' : '')));
});
this.stream.once('end', function () {