mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05: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 Backport-PR-URL: https://github.com/nodejs/node/pull/52384 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:
1 parent
5186e453d9
commit
5cec2efc31
1 file changed
+2
@@ -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