8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bbc1f0 commit b16d570Copy full SHA for b16d570
benchmark/http2/headers.js
@@ -13,7 +13,9 @@ function main(conf) {
13
const n = +conf.n;
14
const nheaders = +conf.nheaders;
15
const http2 = require('http2');
16
- const server = http2.createServer();
+ const server = http2.createServer({
17
+ maxHeaderListPairs: 20000
18
+ });
19
20
const headersObject = {
21
':path': '/',
@@ -34,7 +36,9 @@ function main(conf) {
34
36
stream.end('Hi!');
35
37
});
38
server.listen(PORT, () => {
- const client = http2.connect(`http://localhost:${PORT}/`);
39
+ const client = http2.connect(`http://localhost:${PORT}/`, {
40
41
42
43
function doRequest(remaining) {
44
const req = client.request(headersObject);
0 commit comments