Repository navigation
Add the managed TLS 1.3 and QUIC stack - #1331
Draft
justcoding121 wants to merge 622 commits into
Draft
justcoding121 wants to merge 622 commits into
justcoding121 wants to merge 622 commits into
Conversation
The next request is rejected and does not contact the origin again.
The next request sends the cookie. After the expired Set-Cookie, the container no longer has it and the following request leaves it off.
The origin sees HTTP/1.1. The caller's request version stays 1.0.
…ersion The server selects HTTP/2. The response version is 2. The caller's request version stays 1.0.
An HTTPS HTTP/1.1 POST with ExpectContinue set sends that header. The origin reads the body.
The body is buffered. Transfer-Encoding is left off. The origin reads payload.
The body is one chunk of payload. Content-Length is left off.
The request advertises deflate. The body comes back as hello.
The same address in another textual form is the origin. Host is the bracketed address and port.
The tunnel authority is [::1]:port. The request inside the tunnel is the absolute http URI.
The unbracketed address is not a valid Host header. The inner request now sends [::1].
The default-port Host is xn--bcher-kva.example. The caller's URI scheme stays https.
The request line is the path. Host is the address and port. The caller's URI still holds the user info.
The absolute URI is the origin without the user info. The origin is not contacted.
The field is [::1]:port. User info stays off it. A default port sends [::1].
The request method is GET and the path is /hello.
The path is /hello. The authority is the address and port.
The path keeps the query. The caller's URI still holds the fragment.
The path is /hello%20world and the query value stays %2F.
The request line is GET /hello%20world?x=%2F. Host is the address and port.
The request line is GET /hello?x=a+b&y=%2B. The encoded plus stays %2B.
The request line is GET /h%C3%A9llo HTTP/1.1.
The request line is QUERY /hello HTTP/1.1.
The request line stays GET /hello. Content-Length is 7 and the body is payload.
The request sends X-Trace: one.
The request line is POST /post HTTP/1.1. There is no body and no Transfer-Encoding.
The request includes Connection: close, Upgrade: websocket, Keep-Alive: timeout=5, and Proxy-Connection: keep-alive.
Connection is close, x-trace. X-Trace: one stays on the HTTPS HTTP/1.1 request.
A 200 Fine response reports Fine.
X-Trace arrives as one and two.
…PT7, PT8, and the QUIC entries
…ike the benchmark cell
…atagrams" This reverts commit 33da890.
The platform arm is SslStream with TLS 1.2 on both sides and the managed arm is TlsStream with TLS 1.3 on both sides, because the macOS platform stack cannot complete TLS 1.3. Five cells, three Release runs, median. Ratios only; no verdict, and the official cells stay on TLS 1.3 for both stacks. The helper is its own probe subcommand and does not touch the BenchmarkDotNet cells.
The probe now carries the A/B switch the rps-ab.yml pair needs. With --managed-stack the library host sets UseManagedTlsStack and UseManagedQuicStack before Start, and the CLI host adds the product's own titanium run --managed-stack flag. Without it both hosts keep the platform stack, so one probe build reports either arm.
baseline_probe_args and candidate_probe_args reach a single side of the pair and are appended after probe_args so they win. A default-off switch is measured on the same ref this way: the candidate carries the switch and the baseline stays on the product default. The manifest and the job summary now record both lists.
argparse reads a value that starts with a dash as the next option, so --candidate-probe-arg --managed-stack was rejected with 'expected one argument'. The = form keeps the probe flag as the value.
…rf check The reusable workflow runs the managed TLS and QUIC suites on Windows, Linux, and macOS, installs an OpenSSL 3.5+ oracle first, and sets TITANIUM_REQUIRE_ORACLE=1 so a missing oracle fails instead of skipping a differential test. The advisory perf job runs the TestCategory=Perf guards plus a quick BenchmarkDotNet pass and compares fresh medians with the committed baselines; more than 10% slower is a warning and never fails the pull request. dotnetcore.yml calls it on a code change and merge-gate requires the result.
…ery OS The guard asserted an absolute zero allocation per record. That holds on Windows but not on Linux, where the BCL socket and stream plumbing allocates about 184 bytes per record on both stacks, so the managed arm was reported as a regression while sitting at parity. The guard now measures the platform arm on the same machine and requires the managed arm to stay within it, which is the parity rule the rest of the suite uses. The oracle installer also failed on all three OS: PowerShell reads a quoted variable followed by a colon as a scope-qualified name, so the log line needs the braced form. The Windows runners were unaffected only because the script never reached that line there.
TypeOfService is the IPv4 option, so an IPv6 socket on Linux and macOS rejected Not-ECT and the managed-stack suite failed the UDP edge test. IPV6_TCLASS is 67 on Linux and 36 on macOS, and it has to be set with the raw socket option. The edge test waits until a sent datagram is visible and accepts the kernel refusing a protocol-maximum datagram on macOS loopback.
Both the steady-state and new-connection gates pass, so the Inspector flip is eligible. The default stays off.
A hosted runner measured 367 bytes per record on the managed arm and 362 on the platform arm. The guard still requires zero when the platform arm allocates nothing.
A flipped record is rejected as bad_record_mac. On macOS the server sometimes throws that alert directly instead of wrapping it in an IOException.
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feat/managed-tls-quic-stack. The proxy flags stay off by default.TitaniumHttpHandlerserves HTTP/1.1 and HTTP/2 through a managed TLS stream and HTTP/3 on the managed QUIC client. HTTP/1.1 samples on this PC are above 90 percent of the platform handler. Kestrel and the proxy listener passed HTTP/3 GET and POST on linuxmini and macmini..github/workflows/handler-platform-http3.ymlruns those HTTP/3 tests on Ubuntu and macOS. The Windows unit job returns before it would bind the platform listener.Edition impact
Titanium.Web.Proxy/ Abstractions / Configuration / Scripting / Cli / Gateway / Manager)Titanium.Plus/Titanium.Inspector/Titanium.Xds/Titanium.Cli.GeoIp) — maintainers onlyChecklist
dotnet build src/Titanium.Web.Proxy.sln -c Release)develop(unless directed otherwise)tools/ci/Mirror-ForkPr.ps1for the full quality gate.tests/smoke-matrix.yml(test FQN or workflow job)Test plan
handler-platform-http3is green on Ubuntu and macOS