fix: increase default HTTPS dev server session memory limit (#6207)

This commit is contained in:
David Jackson 2022-05-09 11:48:57 -07:00 committed by GitHub
parent 2d978f7b10
commit f895f94b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
},