(stream)
| 1408 | // Blob, FileHandle, etc.) do not use this -- they go through attachSource |
| 1409 | // and are not subject to backpressure. |
| 1410 | function initStreamingBackpressure(stream) { |
| 1411 | const state = getQuicStreamState(stream); |
| 1412 | // Only set defaults if the user hasn't already configured them |
| 1413 | // (e.g., via createBidirectionalStream({ highWaterMark: N })). |
| 1414 | if (state.highWaterMark === 0) { |
| 1415 | state.highWaterMark = kDefaultHighWaterMark; |
| 1416 | } |
| 1417 | if (state.writeDesiredSize === 0) { |
| 1418 | state.writeDesiredSize = state.highWaterMark; |
| 1419 | } |
| 1420 | } |
| 1421 | |
| 1422 | // Waits for the stream's drain callback to fire, indicating the |
| 1423 | // outbound has capacity for more data. |
no outgoing calls
no test coverage detected
searching dependent graphs…