Skip to content

Commit

Permalink
Initialize _canPush to false in readable streams
Browse files Browse the repository at this point in the history
  • Loading branch information
fbbdev committed Jul 15, 2023
1 parent d572c59 commit fdf5538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function InputStream() {
stream.Readable.call(this);

this._buffer = [];
this._canPush = true;
this._canPush = false;
}
util.inherits(InputStream, stream.Readable);

Expand Down Expand Up @@ -148,7 +148,7 @@ function IOStream(conn, id, recordType) {
this.recordType = recordType || fcgi.records.StdOut;

this._buffer = [];
this._canPush = true;
this._canPush = false;

this._conn = conn;
this._id = id;
Expand Down

0 comments on commit fdf5538

Please sign in to comment.