diff options
author | Anatoli Papirovski <apapirovski@mac.com> | 2018-04-16 22:03:10 +0200 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2018-04-28 18:17:28 +0200 |
commit | b55a11d1b17b3e4b9650ef8e7b4e57ef83dc441d (patch) | |
tree | 0fd4c64468fb877011a89737967466ed752d455d /test/parallel/test-http2-client-upload.js | |
parent | c51b7b296e0fd59a00b1c1337d744f4fc8d2fb35 (diff) | |
download | android-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.js | 2 |
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)); |