When exactly a grpc client create and close connections?
I begin the code with:
channel = grpc.insecure_channel('localhost:8888')
stub = myservice_pb2_grpc.MyServiceStub(channel)
Does declaring a channel
creates a single socket for the entire lifetime of the process?
Cause even if I give invalid address to insecure_channel()
I don't see any error until I make the first request.
Or, the socket is created only when request is made and closed afterwards?