http: refactor headersTimeout and requestTimeout logic

PR-URL: https://github.com/nodejs/node/pull/41263
Fixes: https://github.com/nodejs/node/issues/33440
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
Paolo Insogna authored and GitHub committed 2022-04-13 15:47:59 +01:00
1 parent 9d6af7d1fe
commit 3caa2c1a00
33 files changed
+858 -413

No files matched your search

@@ -27,7 +27,6 @@ const server = net.createServer((socket) => {
{},
0,
0,
1e3
);
parser[HTTPParser.kOnTimeout] = common.mustNotCall();