forked from cloudflare/quiche
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to avoid buffering an infinite amount of data in the stream's send buffer, we now only allow streams to buffer outgoing data up to the amount that the peer allows us to send. This also adds a new Connection method, stream_capacity() which can be used by applications to know how much data they can write in advance. This is required by the HTTP/3 code that needs to know the size of body it can write in advance in order to set a proper size in the DATA frame header. Without stream_capacity(), send_body() could potentially write an incomplete DATA frame in the stream send buffer which would be complicated to recover from.
- Loading branch information
Showing
7 changed files
with
356 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.