Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set timeouts over 15 seconds #6230

Closed
Stono opened this issue Jun 13, 2018 · 3 comments
Closed

Cannot set timeouts over 15 seconds #6230

Stono opened this issue Jun 13, 2018 · 3 comments

Comments

@Stono
Copy link
Contributor

Stono commented Jun 13, 2018

Hi,
I have the following VirtualService:

  hosts:
  - app
  http:
  - route:
    - destination:
        host: app
      weight: 100
    timeout: 600.000s

But I'm getting:

< Content-Type: text/plain
< Content-Length: 24
< Connection: keep-alive
< x-envoy-upstream-service-time: 15038
< Strict-Transport-Security: max-age=15768000
* HTTP error before end of send, stop sending
<
* Closing connection 0
upstream request timeout%

When posting a file:

curl -v -F file=@moo http://app.vds-dvla-importer.svc.cluster.local/api/import

The timeout is definitely working, as if I lower it to say timeout: 10.000s, it errors after 10.

@ymesika
Copy link
Member

ymesika commented Jun 13, 2018

Isn't it resolved by #6042 ?

@Stono
Copy link
Contributor Author

Stono commented Jun 13, 2018

Closing this as @ymesika has rightly pointed out this is a known issue for which there is a bug fix in 0.8.1+

As a temporary workaround for anyone else finding themselves in this situation, adding the following:

spec:
  http:
  - appendHeaders:
      x-envoy-upstream-rq-timeout-ms: "0"

To your VirtualService acts as a work around

@msogrin
Copy link

msogrin commented Jul 4, 2018

@Stono Adding this resulted in a warning in ingressgateway, due to empty weighted_clusters block.

[2018-07-04 11:03:21.746][19][warning][upstream] external/envoy/source/common/config/grpc_mux_impl.cc:218] gRPC config for type.googleapis.com/envoy.api.v2.Listener update rejected: Error adding/updating listener 0.0.0.0_80: Proto constraint validation failed (HttpConnectionManagerValidationError.RouteConfig: ["embedded message failed validation"] | caused by RouteConfigurationValidationError.VirtualHosts[i]: ["embedded message failed validation"] | caused by VirtualHostValidationError.Routes[i]: ["embedded message failed validation"] | caused by RouteValidationError.Route: ["embedded message failed validation"] | caused by RouteActionValidationError.WeightedClusters: ["embedded message failed validation"] | caused by WeightedClusterValidationError.Clusters: ["value must contain at least " '\x01' " item(s)"]): stat_prefix: "http"
...
      route {
        weighted_clusters {
        }
        request_headers_to_add {
          header {
            key: "x-envoy-upstream-rq-timeout-ms"
            value: "0"
          }
        }
        use_websocket {
        }
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants