Netty: IDE warnings cleanup, removed unnecessary inheritance, simplified code.#2831
Merged
NateBrady23 merged 2 commits intoTechEmpower:masterfrom Jun 1, 2017
doom369:master
Merged
Netty: IDE warnings cleanup, removed unnecessary inheritance, simplified code.#2831NateBrady23 merged 2 commits intoTechEmpower:masterfrom doom369:master
NateBrady23 merged 2 commits intoTechEmpower:masterfrom
doom369:master
Conversation
|
Thanks @doom369 for contributing to The Framework Benchmarks! @lneves and @normanmaurer, code you've worked on has been modified. If you have the chance, please review. If you wish to unsubscribe from these notices, please open a Pull Request with the commit message |
Contributor
|
After this change "wrk" starts giving lots of connection errors, curl also complains with the warning: "Excess found in a non pipelined read". |
Contributor
Author
|
@lneves interesting. Let me check. |
Contributor
|
here you go: |
Contributor
Author
|
@lneves yeah, thanks. My bad. Fixed. |
Contributor
|
LGTM! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removed
b.childOption(ChannelOption.ALLOCATOR, new PooledByteBufAllocator(true));as netty now uses
PooledByteBufAllocatorby default.HelloServerHandlernow InheritsChannelInboundHandlerAdapterinstead ofSimpleChannelInboundHandler. AsChannelInboundHandlerAdapterdoes a bit less operations and allocated less forHelloServerHandler.writeResponsedivided into 2 methods for plain response and json response.