Skip to content

Commit

Permalink
Reland call state cleanup fix (#27914)
Browse files Browse the repository at this point in the history
* Revert "Revert "Fix the bug (#27899)" (#27910)"

This reverts commit e2c95fb.

* fix-msan-maybe
  • Loading branch information
ctiller committed Nov 3, 2021
1 parent 596b919 commit a594d0a
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/lib/surface/call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,7 @@ static grpc_call_error call_start_batch(grpc_call* call, const grpc_op* ops,
if (stream_op->send_message) {
call->sending_message = false;
call->sending_stream->Orphan();
stream_op_payload->send_message.send_message.reset();
}
if (stream_op->send_trailing_metadata) {
call->sent_final_op = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
actions {
create_server {
}
}
actions {
create_channel {
target: "dns:server"
}
}
actions {
create_call {
method {
value: "/foo"
}
timeout: 1000000000
}
}
actions {
queue_batch {
operations {
send_initial_metadata {
}
}
}
}
actions {
advance_time: 9541248
}
actions {
queue_batch {
operations {
send_close_from_client {
}
}
operations {
send_message {
}
}
operations {
receive_initial_metadata {
}
flags: 1895825408
}
}
}
actions {
queue_batch {
operations {
send_message {
message {
value: "grp[.default_authority"
intern: true
}
}
}
}
}
actions {
advance_time: 10000000
}
actions {
}

0 comments on commit a594d0a

Please sign in to comment.