I have a Python (3.9) server using grpclib (0.4.2). I need to be able to perform some housekeeping after a client disconnects. I can't seem to find any API (https://grpclib.readthedocs.io/en/latest/server.html) related to this.
I can see that the client sends "cancel". Reading the code (https://github.com/vmagamedov/grpclib/blob/39cc61ad45cd3be15ec464fdefab31b9f4f23918/grpclib/server.py) it looks like it simply logs a message but no additional action takes place. In theory I'm assuming that gRPC allows for a server to know when a client disconnects. Perhaps I need to add this functionality in this library? This seems like a very common thing, and yet, all of the questions I have seen related to this say "you can't do it" or "you can do it this way" but there's no corresponding API call in the library I'm using. I would greatly appreciate any help *bows* -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/6b0aa82b-0d2d-4fec-ab7c-218fe6f54904n%40googlegroups.com.
