I've been writing a GRPC client using the Python library, but I'm having some issues with the connection not being closed. Here's a quick example:
from grpc.beta import implementations
from grpc.framework import interfaces
channel = implementations.insecure_channel('localhost', 8000)
stub = beta_create_Dummy_stub(channel)
if __name__ == "__main__":
This code will hang after raising the Exception. However, this only seems to happen when an Exception is raised. If I remove the statement to raise the Exception, the code exits cleanly. Is there some issue with Python GRPC's cleanup when exceptions occur?