spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

Support for per-route-timeouts in gateway-server-webmvc

Open mediaform-timo-hamann opened this issue 5 months ago • 1 comments

Is your feature request related to a problem? Please describe. We recently switched from spring-cloud-starter-gateway to spring-cloud-starter-gateway-server-webmvc for various reasons. We were able to specify per route timeouts before via application.properties (spring.cloud.gateway.routes[x].metadata.response-timeout, as described in per-route-timeouts). Now we can't use per-route-timeouts anymore, so instead we have to use the highest previously used response-timeout as a global configuration via spring.http.client.read-timeout.

Describe the solution you'd like A possibility to define per route timeouts via Java Routes API.

Describe alternatives you've considered

Additional context This is a feature request similar to the "bug" reported in #3378

mediaform-timo-hamann avatar Jul 17 '25 14:07 mediaform-timo-hamann

Please help with adding support for route based read timeout configuration. Don't know why the previous thread was closed as this is a basic feature. Thanks in advance!

amlanpatra avatar Aug 19 '25 11:08 amlanpatra