I have a Spring Boot application with several endpoints declared like this:
@RestController
public class MyRestController {
@PostMapping("/someRequest")
public void doSomething(final @RequestBody MyRequest request) {
// ...
}
}
How can I find out whether or not the socket used by this controller has TCP keepalive turned on or not?
Update 1: I started the application with libdontdie, i. e. sudo DD_DEBUG=1 DD_TCP_KEEPALIVE_TIME=4 DD_TCP_KEEPALIVE_INTVL=5 DD_TCP_KEEPALIVE_PROBES=6 LD_PRELOAD=/usr/lib/libdontdie.so java -jar myapp.jar --spring.config.location=myapp-config.yaml &
. Need to wait until tomorrow to see whether or not it works.