Skip to content

Commit

Permalink
feat: raise-up the maxSessionMemory of the http2 server from 10 to 20
Browse files Browse the repository at this point in the history
- avoid the ERR_HTTP2_PROTOCOL_ERROR when a large amount of files are served
  • Loading branch information
GabrielDelepine committed Oct 12, 2023
1 parent d3ef523 commit 7f0f431
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-mice-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@web/dev-server-core': minor
---

Raise-up the maxSessionMemory of the http2 server to avoid network errors when a large number of files are served
1 change: 1 addition & 0 deletions packages/dev-server-core/src/server/createServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export function createServer(
: path.join(dir, '..', '.self-signed-dev-server-ssl.cert'),
),
allowHTTP1: true,
maxSessionMemory: 20,
};

const httpsRedirectServer = httpServer.createServer(httpsRedirect);
Expand Down

0 comments on commit 7f0f431

Please sign in to comment.