Skip to content

Conversation

eWert-Online
Copy link

fixes #139 by increasing the max_post_size to 2mib.

It also sets the max concurrency of reactphp to the configured concurrency (or 100 by default).

$server = new HttpServer(
new React\Http\Middleware\StreamingRequestMiddleware(),
new React\Http\Middleware\LimitConcurrentRequestsMiddleware($maxConcurrency),
new React\Http\Middleware\RequestBodyBufferMiddleware(2 * 1024 * 1024), // 2 MiB per request
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be made configurable?

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.

[BUG] rendering fails on large request body
1 participant