summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-client-upload.js
diff options
context:
space:
mode:
authorAnatoli Papirovski <apapirovski@mac.com>2018-04-16 22:03:10 +0200
committerAnatoli Papirovski <apapirovski@mac.com>2018-04-28 18:17:28 +0200
commitb55a11d1b17b3e4b9650ef8e7b4e57ef83dc441d (patch)
tree0fd4c64468fb877011a89737967466ed752d455d /test/parallel/test-http2-client-upload.js
parentc51b7b296e0fd59a00b1c1337d744f4fc8d2fb35 (diff)
downloadandroid-node-v8-b55a11d1b17b3e4b9650ef8e7b4e57ef83dc441d.tar.gz
android-node-v8-b55a11d1b17b3e4b9650ef8e7b4e57ef83dc441d.tar.bz2
android-node-v8-b55a11d1b17b3e4b9650ef8e7b4e57ef83dc441d.zip
http2: fix responses to long payload reqs
When a request with a long payload is received, http2 does not allow a response that does not process all the incoming payload. Add a conditional Http2Stream.close call that runs only if the user hasn't attempted to read the stream. PR-URL: https://github.com/nodejs/node/pull/20084 Fixes: https://github.com/nodejs/node/issues/20060 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-client-upload.js')
-rw-r--r--test/parallel/test-http2-client-upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-client-upload.js b/test/parallel/test-http2-client-upload.js
index 70a8ff3ced..78c6d47cbb 100644
--- a/test/parallel/test-http2-client-upload.js
+++ b/test/parallel/test-http2-client-upload.js
@@ -11,7 +11,7 @@ const fs = require('fs');
const fixtures = require('../common/fixtures');
const Countdown = require('../common/countdown');
-const loc = fixtures.path('person.jpg');
+const loc = fixtures.path('person-large.jpg');
let fileData;
assert(fs.existsSync(loc));