Skip to content

Fix calculating concurrency when post_max_size ini is unlimited - #365

Merged
jsor merged 1 commit into
reactphp:masterfrom
clue-labs:post_max_size
Jul 4, 2020
Merged

Fix calculating concurrency when post_max_size ini is unlimited#365
jsor merged 1 commit into
reactphp:masterfrom
clue-labs:post_max_size

Conversation

@clue

@clueclue commented Jul 4, 2020

Copy link
Copy Markdown
Member

Setting post_max_size to 0 means the HTTP request body size is unlimited. This has a similar effect to setting it to a very large value (e.g. 4G). Accordingly, we have to limit concurrency to not exceed the memory_limit setting (see also #342).

In other words, this is more of an edge case and it's usually not recommended to allow keeping a very large HTTP request body in memory. The post_max_size should be limited to a reasonable value to support decent concurrency.

Resolves#360

@clueclue added the bug label Jul 4, 2020
@clueclue added this to the v0.8.7 milestone Jul 4, 2020
@clue
clue requested review from WyriHaximus and jsorJuly 4, 2020 17:07
jsor
jsor approved these changes Jul 4, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Division by zero in src/Server.php line 175

3 participants

@clue@jsor@WyriHaximus