mirror of https://github.com/grpc/grpc.git
We currently rely on the __del__ method of a module scope object to call grpc_shutdown(). __del__ methods are not guaranteed to be called, and furthermore there are no guarantees about ordering, leading to shutdown race conditions. This moves grpc_shutdown to Py_Finalize(), which gets called after the Python context is completely cleaned up.pull/6941/head
parent
68e5ecbee4
commit
f4c1bff0d8
4 changed files with 24 additions and 21 deletions
Loading…
Reference in new issue