ioredis 5.4.0 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/DataHandler.js +4 -1
- package/built/Redis.js +0 -1
- package/package.json +1 -1
package/built/DataHandler.js
CHANGED
|
@@ -21,9 +21,12 @@ class DataHandler {
|
|
|
21
21
|
this.returnReply(reply);
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
// prependListener ensures the parser receives and processes data before socket timeout checks are performed
|
|
25
|
+
redis.stream.prependListener("data", (data) => {
|
|
25
26
|
parser.execute(data);
|
|
26
27
|
});
|
|
28
|
+
// prependListener() doesn't enable flowing mode automatically - we need to resume the stream manually
|
|
29
|
+
redis.stream.resume();
|
|
27
30
|
}
|
|
28
31
|
returnFatalError(err) {
|
|
29
32
|
err.message += ". Please report this.";
|
package/built/Redis.js
CHANGED
|
@@ -423,7 +423,6 @@ class Redis extends Commander_1.default {
|
|
|
423
423
|
// this handler must run after the "data" handler in "DataHandler"
|
|
424
424
|
// so that `this.commandQueue.length` will be updated
|
|
425
425
|
this.stream.once("data", () => {
|
|
426
|
-
console.log('GOT DATA, CLEARING TIMER');
|
|
427
426
|
clearTimeout(this.socketTimeoutTimer);
|
|
428
427
|
this.socketTimeoutTimer = undefined;
|
|
429
428
|
if (this.commandQueue.length === 0)
|