Skip to content

Apply default socketoptions values when partial config is supplied. #2315

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

Conversation

fantayeneh
Copy link
Contributor

Fixes #2313

Signed-off-by: fantayeneh fantayeneh@gmail.com

Signed-off-by: fantayeneh <fantayeneh@gmail.com>
Copy link
Member

@zaharidichev zaharidichev left a comment

Choose a reason for hiding this comment

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

LGTM, apart from the build failure but by the looks of it, this appears to be a dependency resolution glitch. Thanks for your contribution!

@@ -27,7 +27,7 @@ case class SocketOptionsConfig(
}

Stack.Params.empty +
Transport.Options(noDelay, reuseAddr, reusePort) +
Transport.Options(noDelay.getOrElse(true), reuseAddr.getOrElse(true), reusePort.getOrElse(false)) +
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be good form to put these in some constant such as DefaultNoDelay, etc.

Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

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

⭐ Thanks!

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