gRPC takes ownership of the fd when you pass it to CreateInsecureChannelFromFd(), so you don't need to shut it down or close it.
On Tuesday, May 5, 2020 at 4:33:23 AM UTC-7 [email protected] wrote: > Hi, > I'm creating a grpc channel for the grpc client using > function CreateInsecureChannelFromFd() and giving the file descriptor to > it. > Should I handle the connection for the given file descriptor afterwards in > application or is it handled in grpc framework? > > For example on application side when messages are not delivered I > reconnect using shutdown() or close() etc. > Is it necessary? From strace log I found multiple calls to close() on the > same fd like some are called by application and some by grpc framework. > > Sorry, if something is written badly - my first post here. > > -- 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/9da96e2f-5547-4bf0-a21d-e64432a67cd9%40googlegroups.com.
