Skip to content

Commit

Permalink
Use default setValidateAfterInactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 30, 2024
1 parent 0337bb0 commit f75e4c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/atomgraph/linkeddatahub/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ public void releaseConnection(final HttpClientConnection managedConn, final Obje
};
if (maxConnPerRoute != null) conman.setDefaultMaxPerRoute(maxConnPerRoute);
if (maxTotalConn != null) conman.setMaxTotal(maxTotalConn);
conman.setValidateAfterInactivity(6000); // check connections idle for more than Varnish's idle_timeout which is 5s
//conman.setValidateAfterInactivity(6000); // check connections idle for more than Varnish's idle_timeout which is 5s

Integer idleConnTimeout = 4000;
// create monitor thread that evicts idle connections: https://hc.apache.org/httpcomponents-client-4.5.x/current/tutorial/html/connmgmt.html#d5e418
Expand Down Expand Up @@ -1480,7 +1480,7 @@ public void releaseConnection(final HttpClientConnection managedConn, final Obje
};
if (maxConnPerRoute != null) conman.setDefaultMaxPerRoute(maxConnPerRoute);
if (maxTotalConn != null) conman.setMaxTotal(maxTotalConn);
conman.setValidateAfterInactivity(6000); // check connections idle for more than Varnish's idle_timeout which is 5s
//conman.setValidateAfterInactivity(6000); // check connections idle for more than Varnish's idle_timeout which is 5s

Integer idleConnTimeout = 4000;
// create monitor thread that evicts idle connections: https://hc.apache.org/httpcomponents-client-4.5.x/current/tutorial/html/connmgmt.html#d5e418
Expand Down

0 comments on commit f75e4c9

Please sign in to comment.