-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
http.ResponseWriter Flush not work #3347
Comments
I have done a test, the two results are the same, and will not return immediately, only after the data is returned. |
哈喽,你们这个问题解决了吗?我今天也碰到了这个。 |
Hello, have you solved this problem? I also ran into this today. |
先把Timeout的中间件关掉了,临时解决一下 配置文件里
|
Turn off the Timeout middleware first, and temporarily solve it configuration file
|
Thank you. I have modified the code for the framework and resolved this issue. 🥰 |
Fixed. |
Describe the bug
I want to return data with Transfer-Encoding: chunked. After calling the w.(http.Flusher). Flush() method, the client did not immediately receive the data, but waited until the entire response was finished before returning the data. The same code using the native net/http can return data in real-time.
net/http:
go-zero
Environments (please complete the following information):
More description
The text was updated successfully, but these errors were encountered: