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

Disable Netty's leak detection in QuickAdapter#runServer #2288

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

kyri-petrou
Copy link
Collaborator

Since we're not creating netty responses directly, I don't think there's any reason for us to have leak detection enabled by default

Comment on lines +85 to +89
.provideSomeLayer[R](
ZLayer.succeed(Server.Config.default.port(port))
++ ZLayer.succeed(NettyConfig.default.leakDetection(LeakDetectionLevel.DISABLED))
>+> Server.customized
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PS: I wanted to use provideSome but I got slapped with a different variant of this issue, due to an ambiguity in the implicit trace

@ghostdogpr ghostdogpr merged commit 68ee2a4 into series/2.x Jun 17, 2024
11 checks passed
@ghostdogpr ghostdogpr deleted the better-quick-server-defaults branch June 17, 2024 04:37
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.

2 participants