0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
André Cruz 1bfd03565b http2: don't send trailers on a closed connection
There is a race condition between onStreamCloseResponse(), which
removes the wantTrailers listener, and Http2Stream.close(), which
will invalidate the connection. IE, sendTrailers can be called on
a closed connection which would crash with a:
Error [ERR_HTTP2_INVALID_STREAM]: The stream has been destroyed

PR-URL: https://github.com/nodejs/node/pull/23146
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-10-03 08:25:27 +02:00
..
internal http2: don't send trailers on a closed connection 2018-10-03 08:25:27 +02:00
_http_agent.js http: fix request with option timeout and agent 2018-07-13 18:44:03 +02:00
_http_client.js src: deprecate global COUNTER_* and remove perfctr 2018-09-19 11:07:01 +02:00
_http_common.js http: move process.binding('http_parser') to internalBinding 2018-08-18 13:01:21 -07:00
_http_incoming.js http: added aborted property to request 2018-04-26 19:38:27 +02:00
_http_outgoing.js http: adding doc and debug for calling empty string on write function 2018-08-22 09:48:09 +02:00
_http_server.js src: deprecate global COUNTER_* and remove perfctr 2018-09-19 11:07:01 +02:00
_stream_duplex.js stream: only check options once in Duplex ctor 2018-04-28 17:13:55 +02:00
_stream_passthrough.js
_stream_readable.js lib: remove unnecessary symbols 2018-09-13 10:51:12 +02:00
_stream_transform.js stream: make virtual methods errors consistent 2018-03-12 14:24:34 +01:00
_stream_wrap.js
_stream_writable.js stream: name anonymous function in _stream_writable.js 2018-07-18 17:18:29 +02:00
_tls_common.js tls: fix DEP0083 after upgrading to OpenSSL 1.1.0 2018-09-24 07:26:08 +02:00
_tls_wrap.js tls: de-duplicate for TLSSocket methods 2018-09-17 17:34:19 +02:00
.eslintrc.yaml tools: prevent string literals in some assertions 2018-09-16 20:37:42 -07:00
assert.js assert: add default operator to assert.fail() 2018-09-17 15:59:12 +02:00
async_hooks.js lib: extract validateString validator 2018-08-07 10:51:27 -04:00
buffer.js errors: use ERR_OUT_OF_RANGE for index errors 2018-09-26 19:36:50 -07:00
child_process.js child_process: fix switches for alternative shells on Windows 2018-09-05 20:52:02 +01:00
cluster.js
console.js lib: change abstract equal to strict equal 2018-09-27 05:30:34 +02:00
constants.js os: add os.{get,set}Priority() 2018-08-22 17:27:16 -04:00
crypto.js crypto: downgrade DEP0115 to --pending-deprecation only 2018-09-27 08:43:05 -04:00
dgram.js dgram: make process.binding('udp_wrap') internal 2018-08-31 09:27:44 -04:00
dns.js dns: make process.binding('cares_wrap') internal 2018-08-30 09:08:44 -04:00
domain.js domain: converted anonymous to named function 2018-04-17 23:44:14 -07:00
events.js events: optimize condition for optimal scenario 2018-05-03 14:45:09 +02:00
fs.js url: provide pathToFileURL and fileURLToPath 2018-09-04 16:08:21 +02:00
http2.js http2: graduate from experimental 2018-08-24 18:37:35 -07:00
http.js http: allow url and options to be passed to http*.request and http*.get 2018-07-13 14:09:39 +01:00
https.js https: allow url and options to be passed to https.request 2018-07-31 22:53:25 -07:00
inspector.js inspector: enable Inspector JS API in workers 2018-09-17 09:49:53 -07:00
module.js lib: add back lib/module.js redirection 2018-03-15 20:50:35 +08:00
net.js src: deprecate global COUNTER_* and remove perfctr 2018-09-19 11:07:01 +02:00
os.js util: make util binding internal 2018-09-05 21:53:11 -04:00
path.js path: remove unnecessary if statement 2018-09-16 10:00:36 +02:00
perf_hooks.js http2: move process.binding('http2') to internalBinding 2018-08-18 12:39:59 -07:00
process.js
punycode.js lib: update punycode to 2.1.1 2018-07-16 15:55:15 -07:00
querystring.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
readline.js readline,zlib: named anonymous functions 2018-08-01 21:39:07 -07:00
repl.js util: change util.inspect depth default 2018-10-02 22:43:09 +02:00
stream.js util: make util binding internal 2018-09-05 21:53:11 -04:00
string_decoder.js string_decoder: support typed array or data view 2018-09-17 17:48:44 +02:00
sys.js
timers.js timers: use custom inspection for linked lists 2018-10-02 05:33:57 +02:00
tls.js dns: make process.binding('cares_wrap') internal 2018-08-30 09:08:44 -04:00
trace_events.js trace_events: move trace_events to internalBinding 2018-08-09 11:12:35 -07:00
tty.js tty: make readStream.setRawMode() return this 2018-09-22 11:19:26 +03:00
url.js url: provide pathToFileURL and fileURLToPath 2018-09-04 16:08:21 +02:00
util.js util: change %o depth default 2018-10-02 22:43:10 +02:00
v8.js v8: move process.binding('v8') to internalBinding 2018-08-18 16:27:11 -07:00
vm.js vm: add bindings for v8::CompileFunctionInContext 2018-08-29 16:41:01 +02:00
worker_threads.js worker: rename to worker_threads 2018-06-06 19:44:15 +02:00
zlib.js lib: simplify 'processChunkSync' 2018-09-14 18:27:57 +02:00