Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
a5680881
Commit
a5680881
authored
7 years ago
by
Yang Gao
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #10495 from yang-g/missing_tail
Backport #10459 to v1.2.x
parents
e7369020
512b6371
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/lib/security/transport/security_handshaker.c
+4
-5
4 additions, 5 deletions
src/core/lib/security/transport/security_handshaker.c
with
4 additions
and
5 deletions
src/core/lib/security/transport/security_handshaker.c
+
4
−
5
View file @
a5680881
...
...
@@ -285,12 +285,11 @@ static void on_handshake_data_received_from_peer(grpc_exec_ctx *exec_ctx,
if
(
num_left_overs
>
0
)
{
/* Put the leftovers in our buffer (ownership transfered). */
if
(
has_left_overs_in_current_slice
)
{
grpc_slice_buffer_add
(
&
h
->
left_overs
,
grpc_slice_split_tail
(
&
h
->
args
->
read_buffer
->
slices
[
i
],
consumed_slice_size
));
grpc_slice
tail
=
grpc_slice_split_tail
(
&
h
->
args
->
read_buffer
->
slices
[
i
],
consumed_slice_size
);
grpc_slice_buffer_add
(
&
h
->
left_overs
,
tail
);
/* split_tail above increments refcount. */
grpc_slice_unref_internal
(
exec_ctx
,
h
->
args
->
read_buffer
->
slices
[
i
]
);
grpc_slice_unref_internal
(
exec_ctx
,
tail
);
}
grpc_slice_buffer_addn
(
&
h
->
left_overs
,
&
h
->
args
->
read_buffer
->
slices
[
i
+
1
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment