On Wed, Jul 12, 2017 at 2:59 AM, <[email protected]> wrote:

> Thanks for your idea. Here is how I have implemented it, tell me if this
> is correct:
>

Yeah. That looked good.

Why would have to enable keepalive?
>

If a connection doesn't have any writes then TCP won't be able to detect
breakages. So I normally recommend enabling keepalive when you have a
long-lived stream with little activity, as it will trigger writes. However,
in your case you are local, so we'd expect the connection to be reliable
and provide a prompt notification if the connection is closed (and thus
keepalive probably is unnecessary).

-- 
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%2B4M1oN9%3DTJ7KLJ_VMC6Spxy7rr5OxK%2BU5rPoFew4uuq5%2BJFJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to