Repository navigation
feat(core): Limit the body size of tunnel requests - #25515
Merged
Merged
Conversation
s1gr1d
added this pull request to stack #25516
October 19, 2026 11:03
s1gr1d
requested review from
chargome,
logaretm and
mydea
and removed request for
a team
October 19, 2026 11:03
Draft
1 of 6 tasks
s1gr1d
force-pushed
the
sig/tunnel-body-size-limit
branch
from
October 19, 2026 13:24
719d343 to
5f5fa14
Compare
Contributor
size-limit report 📦
|
s1gr1d
force-pushed
the
sig/tunnel-body-size-limit
branch
from
October 19, 2026 14:20
5f5fa14 to
ab449ec
Compare
logaretm
approved these changes
Oct 19, 2026
logaretm
added a commit
that referenced
this pull request
Oct 19, 2026
#25515's 411 and 413 checks run before the header line is read, so an oversized or unlengthed request is rejected without reading its body.
logaretm
added a commit
that referenced
this pull request
Oct 19, 2026
#25515's 411 and 413 checks run before the header line is read, so an oversized or unlengthed request is rejected without reading its body.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tunnel route handlers (
@sentry/nextjs/tunneland TanStack Start'screateSentryTunnelRoute) now check the request size before they read the body.A request larger than 20 MiB gets a 413, and a request without
Content-Lengthgets a 411. So one request can no longer make the server hold more than 20 MiB in memory. SDK envelopes are much smaller than this limit, so normal traffic does not change.Checking the header is enough, because the HTTP server stops reading the body at
Content-Length.Stacked on #25456.