aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-response-splitting.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-07-18 17:24:41 -0700
committerJames M Snell <jasnell@gmail.com>2017-08-04 12:56:29 -0700
commit01a46f3981463cee26876495fbb4284f0057269b (patch)
treea596d8356b69e54a4945fda2bf473123edda6725 /test/parallel/test-http2-response-splitting.js
parent033c3b0a4da75bffc9bfc9c456033aa684757179 (diff)
downloadandroid-node-v8-01a46f3981463cee26876495fbb4284f0057269b.tar.gz
android-node-v8-01a46f3981463cee26876495fbb4284f0057269b.tar.bz2
android-node-v8-01a46f3981463cee26876495fbb4284f0057269b.zip
http2: fix abort when client.destroy inside end event
PR-URL: https://github.com/nodejs/node/pull/14239 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-response-splitting.js')
-rwxr-xr-x[-rw-r--r--]test/parallel/test-http2-response-splitting.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-http2-response-splitting.js b/test/parallel/test-http2-response-splitting.js
index 088c675389..cd3a5d39d7 100644..100755
--- a/test/parallel/test-http2-response-splitting.js
+++ b/test/parallel/test-http2-response-splitting.js
@@ -65,7 +65,8 @@ server.listen(0, common.mustCall(() => {
assert.strictEqual(headers.location, undefined);
}));
req.resume();
- req.on('end', common.mustCall(maybeClose));
+ req.on('end', common.mustCall());
+ req.on('streamClosed', common.mustCall(maybeClose));
}
doTest(str, 'location', str);