From 8dc6a8a18c395f3d95cedb661846261c126a7036 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 16 Jun 2023 17:44:59 +0200 Subject: [PATCH] Renamed PauseWriterThreshold parameter (#5) --- .../Slic/Internal/SlicDefinitions.slice | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/IceRpc/Transports/Slic/Internal/SlicDefinitions.slice b/IceRpc/Transports/Slic/Internal/SlicDefinitions.slice index c31a00a..3f65960 100644 --- a/IceRpc/Transports/Slic/Internal/SlicDefinitions.slice +++ b/IceRpc/Transports/Slic/Internal/SlicDefinitions.slice @@ -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. @@ -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> @@ -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 }