Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-06-27 13:55:33 +0300
committerAnna Henningsen <anna@addaleax.net>2018-07-16 21:20:39 +0300
commitd94950e960e41a90c4dd5030795ecfb733ff1e8e (patch)
tree873cf3035b2543276160eaf76abb0272fb476621 /src/stream_pipe.h
parent31ecf630d05ba3a849d7b5cc1bd11ba1e5eb0785 (diff)
http2: fix issues with aborted `respondWithFile()`s
PR-URL: https://github.com/nodejs/node/pull/21561 Fixes: https://github.com/nodejs/node/issues/20824 Fixes: https://github.com/nodejs/node/issues/21560 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/stream_pipe.h')
-rw-r--r--src/stream_pipe.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/stream_pipe.h b/src/stream_pipe.h
index b72a60941b6..36a0b1dc081 100644
--- a/src/stream_pipe.h
+++ b/src/stream_pipe.h
@@ -23,16 +23,18 @@ class StreamPipe : public AsyncWrap {
}
private:
- StreamBase* source();
- StreamBase* sink();
+ inline StreamBase* source();
+ inline StreamBase* sink();
- void ShutdownWritable();
- void FlushToWritable();
+ inline void ShutdownWritable();
+ inline void FlushToWritable();
bool is_reading_ = false;
bool is_writing_ = false;
bool is_eof_ = false;
bool is_closed_ = true;
+ bool sink_destroyed_ = false;
+ bool source_destroyed_ = false;
// Set a default value so that when we’re coming from Start(), we know
// that we don’t want to read just yet.