cloudflare / cloudflare/quiche
Allow to open streams with zero length buffer and observe these on the remote peer
- Dominant language
- Rust
- Stars
- 11.8k
- Forks
- 1.1k
- Avg merge
- 21h 9m
- Merged PRs (30d)
- 6
Description
At the moment when `Connection::send_stream(...)` is called with a zero length data buffer (no fin flag) it will succeed but it will not be "observed" on the remote peer. I think this is because you optimize for the amount of data that is written on the wire.
That said I think it sometimes would still be useful to also send this empty stream frame over the wire in the case when you want to open a stream from one peer and start writing from the other without the need to receive any data first. I know you could argue that for such a use-case you may be better off to just open the stream from the other peer in the first place but still I think this is a valid use-case which matches what should be possible based on the quic RFC.
Contributor guide
Assessment
This issue has not been assessed yet.