Replies: 2 comments 2 replies
-
Created a PR with a suggestion of how I'd do it: #193 |
Beta Was this translation helpful? Give feedback.
-
@pfk84 Seems like this will only work with the built-in webserver then. As I see it, this feature will eventually find its way into Framework x, so if we implement it your way as you suggested above, we would have to revert at some point. This would lead to BC-Breaks which we should avoid if we already know about them coming up. (also concerning #193) My question now is: Isn't patching the Framework x files, for now, good enough? I can understand that it becomes a bit annoying and feels avoidable, but I think it's the best answer at the moment. I would also say we should let more people know about this, maybe with documenting this first as a possible alternative and then tackling the bigger topic at a later point. I'm intentionally saying "bigger topic" here because this involves quite a lot of work if we want to do this the right way (which should always be the way to do it!). We're currently involved in planning the next major version for ReactPHP which will also benefit Framework X, so to be completely honest with you, it will take some time before we can look further into this. |
Beta Was this translation helpful? Give feedback.
-
In regards to the built-in limit of the ReactPHP http server with its limit of 64KB for the request body I'd love to have an option to increase/remove this limit without having to patch the Framework X source files, see also #69.
Right now there's nothing that can be configured in $app and the constructor just takes the request middlewares so to keep things simple I'd suggest to have the
run()
function accept middlewares as well that then are being passed torunLoop()
.This way one could add the already existing ReactPHP http server middlewares that change the default behaviours/limits (for example RequestBodyBufferMiddleware).
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions