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 2022-04-13 16:47:59 +02:00 committed by GitHub
parent 9d6af7d1fe
commit 3caa2c1a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 858 additions and 413 deletions

View file

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