Skip to content

Commit 4f44f22

Browse files
authored
fix: increase stream reset rate limit for HTTP2 (#21024)
1 parent a2df778 commit 4f44f22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/vite/src/node/http.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ export async function resolveHttpServer(
129129
// Manually increase the session memory to prevent 502 ENHANCE_YOUR_CALM
130130
// errors on large numbers of requests
131131
maxSessionMemory: 1000,
132+
// Increase the stream reset rate limit to prevent net::ERR_HTTP2_PROTOCOL_ERROR
133+
// errors on large numbers of requests
134+
streamResetBurst: 100000,
135+
streamResetRate: 33,
132136
...httpsOptions,
133137
allowHTTP1: true,
134138
},

0 commit comments

Comments
 (0)