Skip to content

Commit

Permalink
fix: rpc streams (#47)
Browse files Browse the repository at this point in the history
Fix RPC streams dropping after about 15 seconds due to Envoy timing out
the connections. This PR disables timeouts entirely though we might want
to make this configurable on the route level through the Fuse API later.
  • Loading branch information
jgkawell authored Oct 16, 2024
1 parent dc5564f commit 6bc352e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/core/fuse/control_plane/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ func (cp *controlPlane) apply(ctx context.Context, client kvv1Connect.KeyValueSe
UpgradeType: "websocket",
},
},
// disable with 0 value
StreamIdleTimeout: &durationpb.Duration{},
}

pbst, err := anypb.New(manager)
Expand Down Expand Up @@ -328,6 +330,8 @@ func makeRouterConfig(routes map[string]*anypb.Any) *route.RouteConfiguration {
ClusterSpecifier: &route.RouteAction_Cluster{
Cluster: clusterName(r),
},
// disable with 0 value
Timeout: &durationpb.Duration{},
},
},
TypedPerFilterConfig: map[string]*anypb.Any{},
Expand Down

0 comments on commit 6bc352e

Please sign in to comment.