title: Request timeout for endpoint using StreamingResponseBody in Spring
body: <p>I have a spring MVC endpoint returning <code>StreamingResponseBody</code> so I can stream big file instead of keeping it in memory.</p>
  <p>The request can take a while to download so it is timing out. I can fix it by setting <code>spring.mvc.async.request-timeout=360000</code>, but I don't want this setting to apply globally to all endpoints.</p>
  <p>Is there way to set request-timeout only for this specific endpoint?</p>
  <p>I did find <a href="https://stackoverflow.com/questions/47025525/set-timeout-for-specific-async-request-in-spring-boot">Set timeout for specific async request in Spring-boot</a>, but I don't think that applies to my code using <code>StreamingResponseBody</code>.</p>
  <p>I have also found <a href="https://stackoverflow.com/questions/61030650/spring-rest-endpoint-returning-streamingresponsebody-asyncrequesttimeoutexcepti">Spring REST endpoint returning StreamingResponseBody: AsyncRequestTimeoutException after 30 seconds</a>, which doesn't have the desired effect.</p>