blob: f0c4a3d249ab32564efad2dceb1735202d7be65c [file] [log] [blame]
renjietangd21094b2019-06-14 09:39:11 -07001// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/third_party/quiche/src/quic/core/qpack/qpack_receive_stream.h"
6
7#include "net/third_party/quiche/src/quic/core/http/quic_spdy_session.h"
8
9namespace quic {
10QpackReceiveStream::QpackReceiveStream(PendingStream* pending)
11 : QuicStream(pending, READ_UNIDIRECTIONAL, /*is_static=*/true) {}
12
dschinazi17d42422019-06-18 16:35:07 -070013void QpackReceiveStream::OnStreamReset(const QuicRstStreamFrame& /*frame*/) {
renjietangd21094b2019-06-14 09:39:11 -070014 // TODO(renjietang) Change the error code to H/3 specific
15 // HTTP_CLOSED_CRITICAL_STREAM.
16 session()->connection()->CloseConnection(
17 QUIC_INVALID_STREAM_ID, "Attempt to reset Qpack receive stream",
18 ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET);
19}
20
21} // namespace quic