Skip to content

BackendTrafficPolicy.RequestTimeout doesn't work for GRPCRoute #6511

Closed

Description

@jukie

Description:

What issue is being seen? Describe what should be happening instead of
the bug, for example: The expected value isn't returned, etc.

requestTimeout only appears to be implemented for HTTPRoute. Could it supported for GRPCRoute? I'd be willing to contribute if so but if not, is there a way to make this and other fields that aren't supported more clear to the user?

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: BackendTrafficPolicy
spec:
  targetRefs:
  - group: gateway.networking.k8s.io
    kind: GRPCRoute
    name: some-route
  timeout:
    http:
      requestTimeout: 600s

Repro steps:

Include sample requests, environment, etc. All data and inputs
required to reproduce the bug.

Create a GRPCRoute using requestTimeout and review the rendered configuration. Also confirmed by reading the code at https://github.com/envoyproxy/gateway/blob/main/internal/gatewayapi/route.go

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Environment:

Include the environment like gateway version, envoy version and so on.

Logs:

Include the access logs and the Envoy logs.

Activity

  1. jukie commented on Jul 11, 2025

    @jukie
    ContributorAuthor

    May be a dupe of #5446 which could be fixed by #6508

  2. arkodg commented on Jul 11, 2025

    @arkodg
    Contributor

    @jukie closing it as a dupe of #5446 , the workaround is to use the request Timeout field available in BTP for GRPCRoute

  3. jukie commented on Jul 11, 2025

    @jukie
    ContributorAuthor

    requestTimeout for BTP doesn't get evaluated for GRPCRoutes though

  4. jukie commented on Jul 11, 2025

    @jukie
    ContributorAuthor

    The new StreamTimeout field from #6508 will offer this feature but there's still the gap of silently ignoring requestTimeout for GRPCRoute

  5. arkodg commented on Jul 11, 2025

    @arkodg
    Contributor

    it should work for unary, stream will need the enhancement

  6. jukie commented on Jul 12, 2025

    @jukie
    ContributorAuthor

    BackendTrafficPolicy timeout.http.requestTimeout isn't evaluated at all for GRPCRoutes and gets entirely skipped. yes it does I'm wrong

  7. reopened this on Jul 25, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions