Skip to content

Commit

Permalink
JVMCBC-1343 Reduce HTTP idle timeout from 4.5 seconds to 1 second
Browse files Browse the repository at this point in the history
Motivation
----------
Previous default of 4.5 seconds was too close to the
server-side default of 5 seconds. This could cause
spurious request failures.

Change-Id: Ic46e076e728d7aa514a88acb6e6a16e6a4da62b6
Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/194090
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Michael Reiche <michael.reiche@couchbase.com>
  • Loading branch information
dnault committed Jul 20, 2023
1 parent c3cd40e commit 987c3d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public abstract class AbstractPooledEndpointServiceConfig implements ServiceConf
public static final int DEFAULT_MIN_ENDPOINTS = 0;

/**
* By default, idle pooled endpoints are cleaned up every 4.5 seconds so that
* By default, idle pooled endpoints are cleaned up every second so that
* they do not clash with idle socket close attempts by the server.
*/
public static final Duration DEFAULT_IDLE_TIME = Duration.ofMillis(4500);
public static final Duration DEFAULT_IDLE_TIME = Duration.ofSeconds(1);

private final int minEndpoints;
private final int maxEndpoints;
Expand Down

0 comments on commit 987c3d5

Please sign in to comment.