We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a186de commit c3b8e4fCopy full SHA for c3b8e4f
src/common/persistence/FSExtentStore.ts
@@ -518,6 +518,18 @@ export default class FSExtentStore implements IExtentStore {
518
let count: number = 0;
519
let wsEnd = false;
520
521
+ if (!rs.readable) {
522
+ this.logger.debug(
523
+ `FSExtentStore:streamPipe() Readable stream is not readable, rejecting streamPipe.`,
524
+ contextId
525
+ );
526
+ reject(
527
+ new Error(
528
+ `FSExtentStore:streamPipe() Readable stream is not readable.`
529
+ ));
530
+ return;
531
+ }
532
+
533
rs.on("data", data => {
534
count += data.length;
535
if (!ws.write(data)) {
0 commit comments