Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always set default ServiceTalkSocketOptions#IDLE_TIMEOUT #2174

Merged
merged 4 commits into from
Apr 7, 2022

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

It's a good practice to close excess connections if they become idle.

Modifications:

  • Set default IDLE_TIMEOUT to 5 min;
  • Clarify in javadoc that 0 value disabled idle timeout;
  • Remove @Nullable annotation for idleTimeoutMs in internal classes;

Result:

Users always have ServiceTalkSocketOptions#IDLE_TIMEOUT set by
default.

Improves default behavior in conjunctions with #2173.

Motivation:

It's a good practice to close excess connections if they become idle.

Modifications:

- Set default `IDLE_TIMEOUT` to 5 min;
- Clarify in javadoc that 0 value disabled idle timeout;
- Remove `@Nullable` annotation for `idleTimeoutMs` in internal classes;

Result:

Users always have `ServiceTalkSocketOptions#IDLE_TIMEOUT` set by
default.
@idelpivnitskiy idelpivnitskiy merged commit d07605e into apple:main Apr 7, 2022
@idelpivnitskiy idelpivnitskiy deleted the idle branch April 7, 2022 19:59
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.

3 participants