-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix max_execution_time config doesn't work #510
Conversation
src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php
Outdated
Show resolved
Hide resolved
7ab27fe
to
5a8aef4
Compare
What is |
The client connection $fd number you can see https://openswoole.com/docs/modules/swoole-http-response-create |
This is available on all versions of Swoole? Both Swoole and OpenSwoole? |
swoole is supported since v4.6.0+, openswoole is forked from v4.7.0, so both are supported. But openswoole has a max_request_execution_time configuration, so I didn't add it for it. |
@sy-records I think OpenSwoole should be added because |
Got it, thanks for the feedback! @smortexa |
Sorry - still trying to understand this. How does this fix the problem with a worker hanging? Isn't this response being created on the master process? |
Since the worker process is forced to kill, it is understood to have been detached at this point. |
@sy-records @driesvints it appears that this timeout doesn't work nicely with atomic locks. For example, with
The I'm on Laravel |
Fix #470
Re-create the new Swoole response object to use it to send the response.