On Wed, Oct 17, 2018 at 11:54 AM robert engels <[email protected]> wrote:
> Yes, I see how I can re-use the ClientConn across db open requests, the > problem I have is that even if I set a ‘MAX-IDLE’ (and add client code to > ‘ping’ within this interval), I don’t see any method on the server side to > detect when the connection was dropped - there does not seem to be a > callback (or channel) in the Go api ? > There's no API to know when the connection is dropped. All the semantics are per-RPC. RPC's can be "cancelled." Normally the connection is only dropped if there are no RPCs. But if there is an I/O error or similar, then the RPCs will be treated as cancelled. You can be notified when the RPC is cancelled via Context.Done(). -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oP1PbeeEKSPQCvdDjk6CxQfVnZeeDqrqFO2sYkhy8B9UA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature
