mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-24 04:01:07 +03:00
Add reliable reset functionality to QuicWriteCodec
Summary: In this diff, I'm writing functionality to enable us to write RESET_STREAM_AT frames. You can find the format of the RST_STREAM_AT frame in the [RFC](https://datatracker.ietf.org/doc/html/draft-ietf-quic-reliable-stream-reset-06#name-reset_stream_at-frame). Reviewed By: jbeshay Differential Revision: D64907958 fbshipit-source-id: 55e82278ebd0649dc33c82b472be80893af02509
This commit is contained in:
committed by
Facebook GitHub Bot
parent
67794c5022
commit
568f19c17d
@@ -28,10 +28,14 @@ folly::dynamic NewTokenFrameLog::toDynamic() const {
|
||||
|
||||
folly::dynamic RstStreamFrameLog::toDynamic() const {
|
||||
folly::dynamic d = folly::dynamic::object();
|
||||
d["frame_type"] = toQlogString(FrameType::RST_STREAM);
|
||||
d["frame_type"] = toQlogString(
|
||||
reliableOffset ? FrameType::RST_STREAM_AT : FrameType::RST_STREAM);
|
||||
d["stream_id"] = streamId;
|
||||
d["error_code"] = errorCode;
|
||||
d["offset"] = offset;
|
||||
if (reliableOffset) {
|
||||
d["reliable_offset"] = reliableOffset.value();
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user