Skip to content

Commit

Permalink
Merge pull request #2464 from GabrielDelepine/feat/http2_max_session_…
Browse files Browse the repository at this point in the history
…memory

Avoid network errors when a large number of files are served with http2 ERR_HTTP2_PROTOCOL_ERROR
  • Loading branch information
koddsson authored Oct 16, 2023
2 parents d3ef523 + 7f0f431 commit a363710
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 a363710

Please sign in to comment.