-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix Default Keep Alive #107
Conversation
07fa8c5
to
a6e403a
Compare
settings.ConnectivitySettings.KeepAliveInterval = keepAliveIntervalMs switch { | ||
int value when value == -1 => Timeout.InfiniteTimeSpan, | ||
int value when value >= 0 => TimeSpan.FromMilliseconds(value), | ||
_ => throw new InvalidSettingException($"Invalid KeepAliveInterval: {keepAliveIntervalMs}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUGGESTION: Minor, but in RFC is a bit different format: $"Invalid keepAliveInterval {keepAliveInterval}. Please provide a positive integer, or -1 to disable."
.
Same comment for code below https://github.com/EventStore/EventStore-Client-Dotnet/pull/107/files#diff-29e93df819e6a1e3940a362a23ca7857372b6098e23b26c18f4f61282c6319bfR184.
No description provided.