| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,9 @@ function main(conf) { | |||
| 13 | 13 | const n = +conf.n; | |
| 14 | 14 | const nheaders = +conf.nheaders; | |
| 15 | 15 | const http2 = require('http2'); | |
| 16 | - const server = http2.createServer(); | ||
| 16 | + const server = http2.createServer({ | ||
| 17 | + maxHeaderListPairs: 20000 | ||
| 18 | + }); | ||
| 17 | 19 | ||
| 18 | 20 | const headersObject = { | |
| 19 | 21 | ':path': '/', | |
@@ -34,7 +36,9 @@ function main(conf) { | |||
| 34 | 36 | stream.end('Hi!'); | |
| 35 | 37 | }); | |
| 36 | 38 | server.listen(PORT, () => { | |
| 37 | - const client = http2.connect(`http://localhost:${PORT}/`); | ||
| 39 | + const client = http2.connect(`http://localhost:${PORT}/`, { | ||
| 40 | + maxHeaderListPairs: 20000 | ||
| 41 | + }); | ||
| 38 | 42 | ||
| 39 | 43 | function doRequest(remaining) { | |
| 40 | 44 | const req = client.request(headersObject); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments