Repository navigation
perf(response): Flush requests early to clients - #57991
nickvergessen wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Small comments, but I like the idea :)
There is also fastcgi_finish_request for FPM, it may worth a try as it also kills the connection
|
From PHP comments a small reminder:
We should ensure session was closed before. |
|
Good remark about session. I think one of the best scenario would be:
I didn't check what is possible. It may be possible to reduce session access even more |
|
Regarding reducing session access, #32162 is probably interesting. Back then we introduced a config flag to close the session early and reopen if needed, but it has impact on the session expiry which can then not be as reliably as before anymore. |
d4ce68e to
677634f
Compare
|
Rebased and further discussed that with my coding peer (Claude).
|
677634f to
770be47
Compare
| * | ||
| * @return bool true if the connection was closed, false if the response was | ||
| * only flushed because the SAPI does not support closing it | ||
| * @since 35.0.0 |
There was a problem hiding this comment.
| * @since 35.0.0 | |
| * @since 36.0.0 |
by now 🙈
If not, the response will wait for async actions, e.g. HTTP requests from IClientService, to be finished before returning. This is not desired in many cases with e.g. with notifications. Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
…Access The DIContainer no longer implements ArrayAccess, so the tests failed to register their mocks. The new public API also lands in 36, not 35. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
770be47 to
6b82d83
Compare
susnux
left a comment
There was a problem hiding this comment.
Looks good! Rebased and adjusted the version comment :)
If you agree then lets ![]()
If not, the response will wait for async actions, e.g. HTTP requests from IClientService, to be finished before returning. This is not desired in many cases with e.g. with notifications.
Checklist
3. to review, feature component)stable32)