Java 17 HttpClient- socket keepalive Apache’s HttpClient provides mechanism to keep the socket alive.