quic: Add mechanism similar to waitUntilAvailable to create(Bi|Uni)directionalStream
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 122k
- Forks
- 37.4k
- Merge medio
- 4 d 3 h
- PR fusionados (30 d)
- 272
Descripción
The webtransport W3 spec allows to pass the option waitUntilAvailable to functions creating streams,
see e,g, here for a bidi stream:
https://www.w3.org/TR/webtransport/#dom-webtransport-createbidirectionalstream
The idea is that if the stream number flow control is exhausted, you have the option for waitUntilAvailable, which if it is set to false throw and tells the caller, that the flow control window for streams is exhausted.
(Alternatively, we can also supply a property to query the current budget).
The same is true for unidirectional stream.
@jasnell @pimterry
What would you think is a good api for this?
P.S: After the stream and session data flow control handling got attention. I will probably after this is decided, activate my stream number flow control tests on webtransport. As the stream number flow control is a another playing field that can easily lead to stalls. (Though I do not know if something is wrong.....)
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la especificación de WebTransport enlazada en la issue y los puntos de entrada existentes createBidirectionalStream y createUnidirectionalStream. Compara el comportamiento propuesto de waitUntilAvailable con el manejo actual del control de flujo de números de stream y la idea alternativa de consultar el presupuesto. Se considera terminado cuando haya una API acordada para ambas direcciones de stream y pruebas que cubran ventanas de control de flujo agotadas y disponibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- api, networking
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100