diff --git a/docs/index.html b/docs/index.html index d9db9393..cbfb6fc0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5657,7 +5657,7 @@

HTTP/2 · both directions streamed

{ thread.Join(); } -

Both at once, which is the shape a proxy needs: /echo reads a chunk and writes a chunk, so neither the upload nor the download is ever held whole. The two directions are separate parameters - a body reader for the read side, a writer for the write side - because they solve different problems and most servers want exactly one of them. Mirrors ; the difference is HTTP/2's shared connection window, which a handler that stops reading holds down for every other stream on the connection.

+

Both at once, which is the shape a proxy needs: /echo reads a chunk and writes a chunk, so neither the upload nor the download is ever held whole. The two directions are separate parameters - a body reader for the read side, a writer for the write side - because they solve different problems and most servers want exactly one of them. Mirrors . The server keeps its own connection window open, so a handler that stops reading stalls only its own stream's upload.

diff --git a/scripts/gen-docs-panes.py b/scripts/gen-docs-panes.py index 5baf55c8..8dadd882 100644 --- a/scripts/gen-docs-panes.py +++ b/scripts/gen-docs-panes.py @@ -380,8 +380,8 @@ "write side - because they solve different " "problems and most servers want exactly one of them. Mirrors " "; the difference is HTTP/2's shared connection window, which a handler " - "that stops reading holds down for every other stream on the connection."), + "streamed. The server keeps its own connection window open, so a handler that " + "stops reading stalls only its own stream's upload."), "h2ng": ( "Http2/Nghttp2Buffered", "HTTP/2 · nghttp2", "ioxide + ioxide.nghttp2", ["curl --http2-prior-knowledge http://127.0.0.1:8080/"], diff --git a/tests/Ioxide.Tests.E2E/Protocols/EarlyAnswerTests.cs b/tests/Ioxide.Tests.E2E/Protocols/EarlyAnswerTests.cs index 66b904de..17d58397 100644 --- a/tests/Ioxide.Tests.E2E/Protocols/EarlyAnswerTests.cs +++ b/tests/Ioxide.Tests.E2E/Protocols/EarlyAnswerTests.cs @@ -16,7 +16,7 @@ internal static class EarlyAnswerTests // A control's upload, read whole by its handler. private const long ReadUpload = 8L << 20; - // Measured stops are 64 KiB on h2, the connection window, and 192 KiB on h3; these leave room for a slow box. + // Measured stops are up to 320 KiB on h2, the stream window and what the client had buffered, and 192 KiB on h3; these leave room for a slow box. private const long H2Stopped = 512L << 10; private const long H3Stopped = 1L << 20;