-
Notifications
You must be signed in to change notification settings - Fork 560
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
[Bug] accept tcp host:port use of closed network connection on server shutdown #1065
Comments
I have a feeling it's similar to this issue. |
@li-jin-gou hey, you seem to reference this issue probably by mistake 😌 Could please review that link? |
The fastest solution is to use netpoll transport. |
@li-jin-gou thank you for the reference! I will take a look at the chat history. I was using netpoll, but the thing is that Glide needs to support:
These two cases don't look like the ideal for netpoll usage right? |
Yes |
@li-jin-gou if we batched the voice streams and send them as websocket messages, would this be still not the ideal case for netpoll? |
If the QPS is not high, netpoll is fine. refer to https://www.cloudwego.io/docs/hertz/tutorials/basic-feature/network-lib/#choosing-appropriate-network-library |
@li-jin-gou I actually have seen that one. But the doc is more focused on the request size rather than throughput. Is the assumption here that with somewhat low throughput it's unlikely that the request size would cause any memory issues? |
Yes |
Refer to #878 and duplicate issue, I'll close it for now. |
This error is returned if an accepting listener is closed. It is a normal returning process, and it is safe to ignore.
I think it is an optimized point that we ignore this Server closed error when closing the server. |
@welkeyever |
Describe the bug
I'm using Hertz with the standard transport like this:
On shutdown though, Hertz constantly returns me this error:
Does anyone know what I'm doing wrong here? 🤔
Expected behavior
I expect Hertz server to shutdown without errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Hertz version:
v0.7.3
Environment:
The text was updated successfully, but these errors were encountered: