Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/pkg/machine/services/apid/pkg/backend/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ func (l *Local) GetConnection(ctx context.Context, _ string) (context.Context, *
),
grpc.WithDefaultCallOptions(grpc.ForceCodecV2(proxy.Codec())),
grpc.WithSharedWriteBuffer(true),
// Disable idle mode: this is a permanent in-process loopback connection,
// so there is nothing to reclaim by going idle, and it avoids the
// first-request latency of re-establishing the connection after a quiet
// period.
grpc.WithIdleTimeout(0),
)

return outCtx, l.conn, err
Expand Down
Loading