Skip to content

Commit

Permalink
Renamed PauseWriterThreshold parameter (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bentoi authored Jun 16, 2023
1 parent d806836 commit 8dc6a8a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions IceRpc/Transports/Slic/Internal/SlicDefinitions.slice
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ enum FrameType : uint8 {
/// Carries the last stream data.
StreamLast

/// Carries the amount of consumed data.
StreamConsumed

/// Indicates that no more data will be read. This frame is sent when the application closes the read-side of the
/// stream or when it consumed all the stream data. Upon receiving this frame, the application should stop sending
/// data. If both reads and writes are closed, the connection can decrement its stream count and eventually allow a
/// new stream to be started.
StreamReadsClosed

/// Carries the window size increment.
StreamWindowUpdate

/// Indicates that no more data will be written. This frame is sent when the application closes the write-side of
/// the stream before sending all the stream data. If both reads and writes are closed, the connection can decrement
/// its stream count and eventually allow a new stream to be started.
Expand All @@ -67,9 +67,8 @@ unchecked enum ParameterKey : varuint62 {
/// The maximum packet size in bytes.
PacketMaxSize = 3

/// The pause writer threshold in bytes. The peer should hold on sending data when this limit is reached and should
/// only resume sending after receiving the stream consumed frame.
PauseWriterThreshold = 4
/// The initial stream window size.
InitialStreamWindowSize = 4
}

typealias ParameterFields = dictionary<ParameterKey, sequence<uint8>>
Expand Down Expand Up @@ -129,10 +128,10 @@ compact struct PongBody {
payload: OpaqueData
}

/// The {@link FrameType::StreamConsumed} frame body.
/// The {@link FrameType::StreamWindowUpdate} frame body.
[cs::internal]
[cs::readonly]
compact struct StreamConsumedBody {
/// The size of the consumed data.
size: varuint62
compact struct StreamWindowUpdateBody {
/// The window size increment.
windowSizeIncrement: varuint62
}

0 comments on commit 8dc6a8a

Please sign in to comment.