[QUESTION] CoroutineHandler对stream的处理
Author: jobinliCreated Sep 19, 2026Updated Sep 19, 2026
Labelsquestion
Before you submit an issue, please be sure to search through existing issues as well as search through the documentation
- I've searched all existing issues
- I've read all relevant documentation I could find
Describe your question
目前 hyperf 的 CoroutineHandler 对请求时收完响应然后返回。对 stream 响应也是这么处理。相应的,swoole 本身的 http 客户端支持一个 write_func 回调,处理 Event Stream 。为何 CoroutineHandler 不用此处理 stream 响应,而是按照整包收取? 如果开启 HOOK_ALL 后,不使用 CoroutineHandler 会导致什么问题?
Source: hyperf/hyperf