ioredis 5.4.1 → 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/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.";
|