Skip to content

Configure gRPC client keepalive so dead connections surface as Unavailable #35

Open

Description

@rhuss

NewConnection in internal/grpc/conn.go sets no gRPC keepalive. On a half-open connection (idle-timeout load balancer or NAT, or a gateway node lost without FIN/RST), stream.Recv() blocks instead of returning Unavailable. For WatchLogs this means the transparent reconnect never runs, and a quiet sandbox stream stalls until the caller's context ends. The WatchLogs godoc currently documents this limitation.

Keepalive goes on the shared connection, so it affects every RPC and has to match the gateway's enforcement policy (PermitWithoutStream, minimum ping interval). Options: set conservative defaults in NewConnection, or expose keepalive.ClientParameters as a client option.

Raised in review of #10 (thread).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions