Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: increase default HTTPS dev server session memory limit (#6207)
  • Loading branch information
davidwallacejackson committed May 9, 2022
1 parent 2d978f7 commit f895f94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/node/http.ts
Expand Up @@ -104,6 +104,9 @@ export async function resolveHttpServer(
} else {
return require('http2').createSecureServer(
{
// Manually increase the session memory to prevent 502 ENHANCE_YOUR_CALM
// errors on large numbers of requests
maxSessionMemory: 1000,
...httpsOptions,
allowHTTP1: true
},
Expand Down

0 comments on commit f895f94

Please sign in to comment.