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
45798463
Commit
45798463
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Better fix
parent
da308ae2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/transport/chttp2/writing.c
+4
-4
4 additions, 4 deletions
src/core/transport/chttp2/writing.c
src/core/transport/chttp2_transport.c
+6
-23
6 additions, 23 deletions
src/core/transport/chttp2_transport.c
with
10 additions
and
27 deletions
src/core/transport/chttp2/writing.c
+
4
−
4
View file @
45798463
...
...
@@ -332,10 +332,6 @@ void grpc_chttp2_cleanup_writing(
while
(
grpc_chttp2_list_pop_written_stream
(
transport_global
,
transport_writing
,
&
stream_global
,
&
stream_writing
))
{
if
(
stream_writing
->
sent_trailing_metadata
)
{
grpc_chttp2_mark_stream_closed
(
exec_ctx
,
transport_global
,
stream_global
,
!
transport_global
->
is_client
,
1
);
}
if
(
stream_writing
->
sent_initial_metadata
)
{
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_initial_metadata_finished
,
1
);
...
...
@@ -350,6 +346,10 @@ void grpc_chttp2_cleanup_writing(
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_trailing_metadata_finished
,
1
);
}
if
(
stream_writing
->
sent_trailing_metadata
)
{
grpc_chttp2_mark_stream_closed
(
exec_ctx
,
transport_global
,
stream_global
,
!
transport_global
->
is_client
,
1
);
}
GRPC_CHTTP2_STREAM_UNREF
(
exec_ctx
,
stream_global
,
"chttp2_writing"
);
}
gpr_slice_buffer_reset_and_unref
(
&
transport_writing
->
outbuf
);
...
...
This diff is collapsed.
Click to expand it.
src/core/transport/chttp2_transport.c
+
6
−
23
View file @
45798463
...
...
@@ -115,11 +115,6 @@ static void close_from_api(grpc_exec_ctx *exec_ctx,
grpc_status_code
status
,
gpr_slice
*
optional_message
);
/** Fail any outstanding ops */
static
void
fail_all_outstanding_ops
(
grpc_exec_ctx
*
exec_ctx
,
grpc_chttp2_transport_global
*
transport_global
,
grpc_chttp2_stream_global
*
stream_global
);
/** Add endpoint from this transport to pollset */
static
void
add_to_pollset_locked
(
grpc_exec_ctx
*
exec_ctx
,
grpc_chttp2_transport
*
t
,
...
...
@@ -753,21 +748,6 @@ void grpc_chttp2_complete_closure_step(grpc_exec_ctx *exec_ctx,
*
pclosure
=
NULL
;
}
static
void
fail_all_outstanding_ops
(
grpc_exec_ctx
*
exec_ctx
,
grpc_chttp2_transport_global
*
transport_global
,
grpc_chttp2_stream_global
*
stream_global
)
{
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_initial_metadata_finished
,
0
);
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_trailing_metadata_finished
,
0
);
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_message_finished
,
0
);
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
recv_initial_metadata_finished
,
0
);
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
recv_trailing_metadata_finished
,
0
);
}
static
int
contains_non_ok_status
(
grpc_chttp2_transport_global
*
transport_global
,
grpc_metadata_batch
*
batch
)
{
...
...
@@ -1042,9 +1022,6 @@ static void check_read_ops(grpc_exec_ctx *exec_ctx,
exec_ctx
,
&
stream_global
->
recv_trailing_metadata_finished
,
1
);
}
}
if
(
stream_global
->
finished_close
)
{
fail_all_outstanding_ops
(
exec_ctx
,
transport_global
,
stream_global
);
}
}
}
...
...
@@ -1146,6 +1123,12 @@ void grpc_chttp2_mark_stream_closed(
}
if
(
close_writes
&&
!
stream_global
->
write_closed
)
{
stream_global
->
write_closed
=
1
;
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_initial_metadata_finished
,
0
);
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_trailing_metadata_finished
,
0
);
grpc_chttp2_complete_closure_step
(
exec_ctx
,
&
stream_global
->
send_message_finished
,
0
);
}
if
(
stream_global
->
read_closed
&&
stream_global
->
write_closed
)
{
if
(
stream_global
->
id
!=
0
&&
...
...
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