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
37e06cfc
Commit
37e06cfc
authored
7 years ago
by
Vijay Pai
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #11890 from vjpai/inproc_comment
Clarify inproc byte stream function
parents
385a6fc3
0c22cad0
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/ext/transport/inproc/inproc_transport.c
+5
-2
5 additions, 2 deletions
src/core/ext/transport/inproc/inproc_transport.c
with
5 additions
and
2 deletions
src/core/ext/transport/inproc/inproc_transport.c
+
5
−
2
View file @
37e06cfc
...
...
@@ -190,8 +190,11 @@ typedef struct inproc_stream {
static
bool
inproc_slice_byte_stream_next
(
grpc_exec_ctx
*
exec_ctx
,
grpc_byte_stream
*
bs
,
size_t
max
,
grpc_closure
*
on_complete
)
{
inproc_slice_byte_stream
*
stream
=
(
inproc_slice_byte_stream
*
)
bs
;
return
(
stream
->
le
->
sb
.
count
!=
0
);
// Because inproc transport always provides the entire message atomically,
// the byte stream always has data available when this function is called.
// Thus, this function always returns true (unlike other transports) and
// there is never any need to schedule a closure
return
true
;
}
static
grpc_error
*
inproc_slice_byte_stream_pull
(
grpc_exec_ctx
*
exec_ctx
,
...
...
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