quic: Add mechanism similar to waitUntilAvailable to create(Bi|Uni)directionalStream
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 122k
- Fork
- 37.3k
- Merge medio
- 4g 2h
- PR unite (30g)
- 283
Descrizione
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.....)
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dalla specifica WebTransport collegata nell’issue e dagli entry point esistenti createBidirectionalStream e createUnidirectionalStream. Confronta il comportamento proposto di waitUntilAvailable con la gestione attuale del controllo di flusso dei numeri di stream e con l’idea alternativa di interrogare il budget. Il lavoro è completo quando esiste un’API concordata per entrambe le direzioni degli stream e ci sono test che coprono finestre di controllo di flusso esaurite e disponibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- api, networking
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Tranquilla
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100