feat(http2): add http2_max_send_buf_size option to client and server

This value is like a high-water mark. It applies per stream. Once a
stream has buffered that amount of bytes to send, it won't poll more
data from the `HttpBody` until the stream has been able to flush under
it.
This commit is contained in:
Sean McArthur
2021-12-08 15:03:00 -08:00
parent 84b78b6c87
commit bff977b73c
7 changed files with 68 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ http = "0.2"
http-body = "0.4"
httpdate = "1.0"
httparse = "1.5.1"
h2 = { version = "0.3.3", optional = true }
h2 = { version = "0.3.9", optional = true }
itoa = "0.4.1"
tracing = { version = "0.1", default-features = false, features = ["std"] }
pin-project-lite = "0.2.4"