| Index: net/quic/quic_packet_creator.cc
|
| diff --git a/net/quic/quic_packet_creator.cc b/net/quic/quic_packet_creator.cc
|
| index 58aaa85223ec73ebba996344a4ad39579644b1ec..5151613fb13f57f1a0f866fa263ea31c95907b96 100644
|
| --- a/net/quic/quic_packet_creator.cc
|
| +++ b/net/quic/quic_packet_creator.cc
|
| @@ -271,6 +271,12 @@ bool QuicPacketCreator::ConsumeData(QuicStreamId id,
|
| needs_padding_ = true;
|
| }
|
| DCHECK(success);
|
| + if (fec_protection == MUST_FEC_PROTECT &&
|
| + iov_offset + frame->stream_frame->frame_length == iov.total_length) {
|
| + // Turn off FEC protection when we're done writing protected data.
|
| + DVLOG(1) << "Turning FEC protection OFF";
|
| + should_fec_protect_next_packet_ = false;
|
| + }
|
| return true;
|
| }
|
|
|
| @@ -459,7 +465,7 @@ void QuicPacketCreator::Flush() {
|
| void QuicPacketCreator::OnSerializedPacket(SerializedPacket* packet) {
|
| if (packet->packet == nullptr) {
|
| LOG(DFATAL) << "Failed to SerializePacket. fec_policy:" << fec_send_policy()
|
| - << " should_fec_protect_:" << should_fec_protect_next_packet();
|
| + << " should_fec_protect_:" << should_fec_protect_next_packet_;
|
| delegate_->CloseConnection(QUIC_FAILED_TO_SERIALIZE_PACKET, false);
|
| return;
|
| }
|
|
|