Merge pull request #2352 from ctiller/create-pull-request/patch-1f7efd8

Automated fix for refs/heads/flake-fightas-16
pull/37865/head
Craig Tiller 2 months ago committed by GitHub
commit b3dfc1e9b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      src/core/ext/transport/chaotic_good/server_transport.cc

@ -145,12 +145,11 @@ auto ChaoticGoodServerTransport::SendCallBody(
CallInitiator call_initiator) {
// Continuously send client frame with client to server
// messages.
return ForEach(
OutgoingMessages(call_initiator),
return ForEach(OutgoingMessages(call_initiator),
// Capture the call_initator to ensure the underlying call
// spine is alive until the SendFragment promise completes.
[stream_id, outgoing_frames,
aligned_bytes = aligned_bytes_](MessageHandle message) mutable {
[stream_id, outgoing_frames, aligned_bytes = aligned_bytes_](
MessageHandle message) mutable {
ServerFragmentFrame frame;
// Construct frame header (flags, header_length
// and trailer_length will be added in
@ -161,8 +160,8 @@ auto ChaoticGoodServerTransport::SendCallBody(
? 0
: aligned_bytes - (message_length % aligned_bytes);
CHECK_EQ((message_length + padding) % aligned_bytes, 0u);
frame.message =
FragmentMessage(std::move(message), padding, message_length);
frame.message = FragmentMessage(std::move(message), padding,
message_length);
frame.stream_id = stream_id;
return SendFragment(std::move(frame), outgoing_frames);
});

Loading…
Cancel
Save