aboutsummaryrefslogtreecommitdiff
path: root/src/node_http2.h
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-01-01 17:51:34 -0800
committerJames M Snell <jasnell@gmail.com>2018-01-03 14:45:57 -0800
commit651ce28be949e0b435b4beb7e61547e31414c4f2 (patch)
tree0126b2b671ad7d8b3dff3e77a6bebd972b88ed7c /src/node_http2.h
parentefdadcc193dc1a2b2121fecf1a3ef24d5c35b564 (diff)
downloadandroid-node-v8-651ce28be949e0b435b4beb7e61547e31414c4f2.tar.gz
android-node-v8-651ce28be949e0b435b4beb7e61547e31414c4f2.tar.bz2
android-node-v8-651ce28be949e0b435b4beb7e61547e31414c4f2.zip
http2: properly handle already closed stream error
PR-URL: https://github.com/nodejs/node/pull/17942 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_http2.h')
-rw-r--r--src/node_http2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_http2.h b/src/node_http2.h
index f0824e556a..f63f8133a4 100644
--- a/src/node_http2.h
+++ b/src/node_http2.h
@@ -992,6 +992,11 @@ class Http2Session : public AsyncWrap {
size_t length,
nghttp2_data_source* source,
void* user_data);
+ static inline int OnInvalidFrame(
+ nghttp2_session* session,
+ const nghttp2_frame *frame,
+ int lib_error_code,
+ void* user_data);
static inline ssize_t OnStreamReadFD(