Introduce string_view and use it for gpr_split_host_port#19488
Merged
soheilhy merged 4 commits intogrpc:masterfrom Jul 1, 2019
Merged
Introduce string_view and use it for gpr_split_host_port#19488soheilhy merged 4 commits intogrpc:masterfrom
soheilhy merged 4 commits intogrpc:masterfrom
Conversation
markdroth
reviewed
Jun 27, 2019
Member
markdroth
left a comment
There was a problem hiding this comment.
When rolling forward a change with a fix, please use two separate commits: one for the revert of the previous commit, and a second one with the fixes. This makes it much easier for the reviewer to see what's changed since the last attempt. Thanks!
45b9dbf to
2f86ccc
Compare
Contributor
Author
|
Sorry about that @markdroth. I split the patch in two: first is the clean revert, and second is the fix. thanks for the review! |
Contributor
Author
|
@markdroth sorry about the hassle, but I had to make two changes and rebase everything.
I pushed the extra commits above, and will wait to see if there are other cases that I've missed. Sorry about the extra round-trip. |
Member
|
Still LGTM. |
Contributor
Author
|
Thank you! Will request an internal cherrypick then. |
Contributor
Author
|
Merging for cherry-pick. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This is a roll forward of #19218 with a fix.
The issue was that instead of using the return value,
the original patch was checking the length of the host
and port.
The fix is as simple as the following two-line change.
Added unittests in
test/core/gprpp/host_port_test.cctoresolve the issue.