| Index: net/quic/quic_protocol.cc
|
| diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
|
| index 5a59809ee4c14ac095e972b4a7bf1e4d4c16fe0d..f34db6d24e4fc9016a6dc6db8ec5dc037c87bdee 100644
|
| --- a/net/quic/quic_protocol.cc
|
| +++ b/net/quic/quic_protocol.cc
|
| @@ -275,6 +275,21 @@ QuicCongestionFeedbackFrame::QuicCongestionFeedbackFrame() : type(kTCP) {}
|
|
|
| QuicCongestionFeedbackFrame::~QuicCongestionFeedbackFrame() {}
|
|
|
| +QuicRstStreamErrorCode AdjustErrorForVersion(
|
| + QuicRstStreamErrorCode error_code,
|
| + QuicVersion version) {
|
| + switch (error_code) {
|
| + case QUIC_RST_FLOW_CONTROL_ACCOUNTING:
|
| + if (version <= QUIC_VERSION_17) {
|
| + return QUIC_STREAM_NO_ERROR;
|
| + }
|
| + break;
|
| + default:
|
| + return error_code;
|
| + }
|
| + return error_code;
|
| +}
|
| +
|
| QuicRstStreamFrame::QuicRstStreamFrame()
|
| : stream_id(0),
|
| error_code(QUIC_STREAM_NO_ERROR) {
|
|
|