-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Modify udp_server to postpone shutdown_fd() during shutdown. #10440
Conversation
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
13 similar comments
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure. |
ping? |
jenkins: this is ok to test |
@danzh2010 Please squash commits. Thanks. |
|
done. Thanks @yang-g |
|
clang-format is not happy:
/* Create a server, initially not bound to any ports */ static void on_fd_orphaned(grpc_exec_ctx *exec_ctx, grpc_fd *emfd,
|
PTAL |
LGTM Let's wait for the tests. Thanks. |
|
Test failure: #9562 |
Since udp_server only has one fd, it shouldn't be shutdown immediately in grpc_udp_server_destroy() when there are in-flight requests. Instead, server should wait till all requests finishes to shut down the fd. This cl add a closure with a callback of shutdowning fd to grpc_udp_listener. This callback is passed through orphan_cb() in grpc_udp_listener to notify transport layer that fd is about to be orphaned and trigger the callback to shutdown fd when transport layer thinks it's the time to do so.