Всем добрый день! Появилась необходимость установить максимальное время обработки входного HTTP-запроса на контроллере. Используем Spring Boot, в качестве сервера - Tomcat. Пробовали настройки server.tomcat.connection-timeout/server.connection-timeout (в зависимости от версии спринга) - безрезультатно.
If JK aborts waiting for a response, because a reply timeout fired, there is no way to stop processing on the backend. Although you free processing resources in your web server, the request will continue to run on the backend - without any way to send back a result once the reply timeout fired.
So Tomcat will detect that the servlet has not responded within the timeout and will send back a response to the user, but will not stop the thread running. I don't think you can achieve what you want to do.