Skip to content

Commit dd6fe2e

Browse files
committed
Use Infinity as highWaterMark value instead of having the sizeAlgorithm returning zero.
This makes it clearer backpressure is disabled. Mention reducing buffering as the reason behind this choice. Fixes #188.
1 parent 4bd0792 commit dd6fe2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ At construction of each {{RTCRtpSender}} or {{RTCRtpReceiver}}, run the followin
8989
4. <a dfn for="ReadableStream">Set up</a> [=this=].`[[readable]]`. [=this=].`[[readable]]` is provided frames using the [$readEncodedData$] algorithm given |this| as parameter.
9090
5. Set [=this=].`[[readable]]`.`[[owner]]` to |this|.
9191
6. Initialize [=this=].`[[writable]]` to a new {{WritableStream}}.
92-
7. <a dfn for="WritableStream">Set up</a> [=this=].`[[writable]]` with its [=WritableStream/set up/writeAlgorithm=] set to [$writeEncodedData$] given |this| as parameter and its [=WritableStream/set up/sizeAlgorithm=] to an algorithm that returns <code>0</code>.
93-
<p class="note">Chunk size is set to 0 to explictly disable streams backpressure on the write side.</p>
92+
7. <a dfn for="WritableStream">Set up</a> [=this=].`[[writable]]` with its [=WritableStream/set up/writeAlgorithm=] set to [$writeEncodedData$] given |this| as parameter and its [=WritableStream/set up/highWaterMark=] set to <code>Infinity</code>.
93+
<p class="note">highWaterMark is set to Infinity to explicitly disable backpressure. The goal is to limit buffering as much as possible.</p>
9494
8. Set [=this=].`[[writable]]`.`[[owner]]` to |this|.
9595
9. Initialize [=this=].`[[pipeToController]]` to null.
9696
1. Initialize [=this=].`[[lastReceivedFrameCounter]]` to <code>0</code>.

0 commit comments

Comments
 (0)