-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Define Server.Stop #539
Comments
no, it is not accurate. It would be Stop forcefully stops the gRPC server. It immediately closes all open connections and open listeners, and abort all active RPCs, and then returns. #147 has been opened for graceful shutdown. |
Your proposed wording update invites more questions: if it immediately closes all open connections, how does it then later abort all active RPCs? What does aborting mean? |
It cancels all active RPCs on server side. It does not notify client (no RST_STREAM sent). The client side pending rpcs will get notified by a connection error. |
Great. Let's put that in docs. |
sure, a PR will be out soon. |
Server.Stop is somewhat ill-defined:
https://godoc.org/google.golang.org/grpc#Server.Stop
Several things are unclear from that text:
If my understanding of the code is correct, and I don't misunderstand the intentions of this method, I think better wording might be:
Is that accurate?
The text was updated successfully, but these errors were encountered: