'Enable Tomcat soKeepalive inside Spring Boot server
We have an issue with one of our Spring Boot API servers, which is being accessed from an AWS Lambda. The request takes about 10 minutes to process, and the 201 response never gets back to the Lambda, We suspect this issue with AWS Load Balancing timeouts so we would like to enable TCP socket keepalives, so the NLB doesn't see the connection as 'idle'.
There is a Tomcat-specific setting (mentioned in this question here on SO) called 'socket.soKeepAlive=true', but we're not sure how to set this in the 'application.properties' file for the Spring Boot instance.
Note, this is different to HTTP keepalive which keeps the connection open so the client/server can send/receive multiple requests/responses.
Does anyone know how, or even if, this setting can be made for this server?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
