Repository navigation
SslHandler avoid calling wrap/unwrap when unnecessary - #6311
Closed
Scottmitch wants to merge 1 commit into
Closed
Scottmitch wants to merge 1 commit into
Scottmitch wants to merge 1 commit into
Conversation
Closed
Scottmitch
force-pushed
the
ssl_handler_optimize
branch
2 times, most recently
from
February 4, 2017 22:03
63adfa0 to
59e3a12
Compare
Member
|
@Scottmitch please check unit test failures. |
Scottmitch
force-pushed
the
ssl_handler_optimize
branch
from
February 6, 2017 18:18
59e3a12 to
ad7c595
Compare
normanmaurer
requested changes
Feb 6, 2017
Member
There was a problem hiding this comment.
@Scottmitch can you put this in front of the while just to make it more clear:
unwrapLoop: while(....)
Scottmitch
force-pushed
the
ssl_handler_optimize
branch
from
February 6, 2017 19:54
ad7c595 to
6cc01e6
Compare
normanmaurer
requested changes
Feb 7, 2017
normanmaurer
left a comment
Member
There was a problem hiding this comment.
Just a few nits... LGTM otherwise
Member
There was a problem hiding this comment.
@Scottmitch as you changed this to java docs please use {@link #setHandshakeFailure(.....
Member
There was a problem hiding this comment.
can you add some comments why its ok to break the loop in this case ?
Member
There was a problem hiding this comment.
can you add some comments why its ok to break the loop in this case ?
Motivation: The SSLEngine wrap and unwrap methods can be called in a way that has no side effects, but this could involve costly validation and allocation. The SslHandler should avoid calling into these methods if possible. Modifications: - wrapNonAppData should provide additional status which can be used by wrap to breakout early if possible Result: SslHandler invokes the SSLEngine less.
Scottmitch
force-pushed
the
ssl_handler_optimize
branch
from
February 7, 2017 08:09
6cc01e6 to
94d6299
Compare
normanmaurer
approved these changes
Feb 7, 2017
Member
|
@Scottmitch ship it |
Member
Author
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.
Motivation:
The SSLEngine wrap and unwrap methods can be called in a way that has no side effects, but this could involve costly validation and allocation. The SslHandler should avoid calling into these methods if possible.
Modifications:
Result:
SslHandler invokes the SSLEngine less.