Skip to content

Comments

Enable keepalive by default#3669

Merged
a-TODO-rov merged 3 commits intomainfrom
enable-keepalive
Feb 19, 2026
Merged

Enable keepalive by default#3669
a-TODO-rov merged 3 commits intomainfrom
enable-keepalive

Conversation

@a-TODO-rov
Copy link
Contributor

Make sure that:

  • You have read the contribution guidelines.
  • You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • You applied code formatting rules using the mvn formatter:format target. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.

@a-TODO-rov a-TODO-rov marked this pull request as ready for review February 19, 2026 11:20
@a-TODO-rov a-TODO-rov linked an issue Feb 19, 2026 that may be closed by this pull request
@a-TODO-rov a-TODO-rov merged commit 19e7fce into main Feb 19, 2026
10 checks passed
@a-TODO-rov a-TODO-rov deleted the enable-keepalive branch February 19, 2026 11:30
Comment on lines +327 to +331
public static final int DEFAULT_COUNT = 3;

public static final Duration DEFAULT_IDLE = Duration.ofHours(2);
public static final Duration DEFAULT_IDLE = Duration.ofSeconds(13);

public static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(75);
public static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(13);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have gone with more attempts:

50 = 10 + 5 * 8

TCP_USER_TIMEOUT = 50
TCP_KEEPIDLE = 10
TCP_KEEPINTVL = 8
TCP_KEEPCNT = 5

My logic : in a more congested network more attempts may yield at least one successful attempt, while bigger intervals wont help get a package though.

You will basically drop more congested connections that might be redeemable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable keep-alive by default

2 participants