You've already forked node-redis
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:
4
index.js
4
index.js
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user