mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: reduce the number of requests and parsers
The maximum number of parsers in the free list is set to 1000. However the test does not need to use this maximum. Reduce it to 50. Refs: https://github.com/nodejs/node/pull/50228#issuecomment-1768293624 PR-URL: https://github.com/nodejs/node/pull/50240 Fixes: https://github.com/nodejs/node/issues/49564 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
This commit is contained in:
@@ -8,6 +8,8 @@ const httpCommon = require('_http_common');
|
||||
const { HTTPParser } = require('_http_common');
|
||||
const net = require('net');
|
||||
|
||||
httpCommon.parsers.max = 50;
|
||||
|
||||
const COUNT = httpCommon.parsers.max + 1;
|
||||
|
||||
const parsers = new Array(COUNT);
|
||||
|
||||
Reference in New Issue
Block a user