Search code examples
spring-bootjettyembedded-jettyjetty-9

How to configure async timeout in embedded jetty using spring boot application


I am using an embedded jetty container using spring boot. If my request take too long, Jetty fails on 503. In jetty logs I see this:

Dispatch after async timeout

So, I assume the async timed out. However, I couldn't find where to update this timeout to a higher value.

Any ideas?


Solution

  • Spring mvc supports an application property, spring.mvc.async.request-timeout, which is the timeout in milliseconds for asynchronous request handling. Verified with spring-webmvc-4.3.2.RELEASE