node/benchmark/http
Bastian Krol 6a21d3e72f
async_hooks: add missing async_hooks destroys in AsyncReset
This adds missing async_hooks destroy calls for sockets (in
_http_agent.js) and HTTP parsers. We need to emit a destroy in
AsyncWrap#AsyncReset before assigning a new async_id when the instance
has already been in use and is being recycled, because in that case, we
have already emitted an init for the "old" async_id.

This also removes a duplicated init call for HTTP parser: Each time a
new parser was created, AsyncReset was being called via the C++ Parser
class constructor (super constructor AsyncWrap) and also via
Parser::Reinitialize.

Backport-PR-URL: https://github.com/nodejs/node/pull/23404
PR-URL: https://github.com/nodejs/node/pull/23272
Fixes: https://github.com/nodejs/node/issues/19859
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-11-29 11:39:01 -05:00
..
_chunky_http_client.js tools: enable eslint strict key-spacing 2018-02-22 14:56:12 +00:00
bench-parser.js async_hooks: add missing async_hooks destroys in AsyncReset 2018-11-29 11:39:01 -05:00
check_invalid_header_char.js http: simplify checkInvalidHeaderChar 2018-02-16 19:27:28 +01:00
check_is_http_token.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
chunked.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
client-request-body.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
cluster.js test: fix long-running http benchmarks 2018-04-23 07:11:17 -07:00
create-clientrequest.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
end-vs-write-end.js benchmark: (http) use destructuring 2018-01-23 01:29:28 +01:00
headers.js http: refactor outgoing headers processing 2018-05-04 11:54:32 -04:00
http_server_for_chunky_client.js test: move tmpdir to submodule of common 2018-01-31 22:11:07 -08:00
set_header.js http: switch on string values 2018-01-26 16:24:50 -05:00
set-header.js benchmark: cut down http benchmark run time 2018-02-01 11:43:30 +01:00
simple.js benchmark: cut down http benchmark run time 2018-02-01 11:43:30 +01:00
upgrade.js benchmark: (http(2)) refactor 2018-02-01 10:49:03 +01:00