Skip to content

[5.x] Raise Amp body size limit to allow large JSON request bodies - #260

Merged
MrPunyapal merged 1 commit into
pestphp:5.xfrom
hafezdivandari:5.x-amp-body-size-limit
Sep 14, 2026
Merged

MrPunyapal merged 1 commit into
pestphp:5.xfrom
hafezdivandari:5.x-amp-body-size-limit

Conversation

@hafezdivandari

Copy link
Copy Markdown
Contributor

Amp's SocketHttpServer::createForDirectAccess() defaults to a 128 KiB body size limit, which caused deadlocks/hangs when reading large JSON payloads in POST/PUT/PATCH requests. The server is now created with an explicit DefaultHttpDriverFactory raising the body size limit to 64 MiB, allowing large request bodies to be read without stalling.

@MrPunyapal
MrPunyapal merged commit df920e8 into pestphp:5.x Sep 14, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants