From d836b4880877225ceef0ba8f93bc1feb6a6d0956 Mon Sep 17 00:00:00 2001 From: Uday Khare Date: Sat, 28 Nov 2026 01:05:25 +0530 Subject: [PATCH 1/4] aegon: enter compliance suites (h1, h2, h3, ws) --- frameworks/aegon/Dockerfile | 2 +- frameworks/aegon/README.md | 1 + frameworks/aegon/main.cpp | 49 +++++++++++++++++++++++++++++-------- frameworks/aegon/meta.json | 6 +++++ 4 files changed, 47 insertions(+), 11 deletions(-) diff --git a/frameworks/aegon/Dockerfile b/frameworks/aegon/Dockerfile index dc305055d8..5772972ee6 100644 --- a/frameworks/aegon/Dockerfile +++ b/frameworks/aegon/Dockerfile @@ -18,7 +18,7 @@ RUN pacman -Syu --noconfirm --needed \ ARG AEGON_REPO=https://github.com/UdayKhare09/Aegon.git ARG AEGON_REF=main -ARG AEGON_COMMIT=1a75f92 +ARG AEGON_COMMIT=f6c196b WORKDIR /src RUN echo "Building Aegon commit: ${AEGON_COMMIT}" && \ diff --git a/frameworks/aegon/README.md b/frameworks/aegon/README.md index a54d935d41..3517a25094 100644 --- a/frameworks/aegon/README.md +++ b/frameworks/aegon/README.md @@ -29,6 +29,7 @@ | `/echo` | POST | TLS | 8Gbit verbatim binary stream echo | | `/static/*` | GET | TLS, HTTP/2 & HTTP/3 | High-throughput static file delivery via `router.static_files` | | `/ws` | Upgrade | HTTP/1.1 (RFC 6455) | Full-duplex WebSocket echo with SIMD unmasking and `io_uring` batching | +| `/spec`, `/spec/headers` | GET, HEAD, OPTIONS, POST | HTTP/1.1, HTTP/2 & TLS | Compliance suite target (`Http11Probe`, `h2spec`) | | `/benchmark.BenchmarkService/GetSum` | POST | gRPC over h2c & h2+TLS | Native zero-overhead unary gRPC sum RPC (`unary-grpc`, `unary-grpc-tls`) | ## Ports & Protocols diff --git a/frameworks/aegon/main.cpp b/frameworks/aegon/main.cpp index 5f16bcf82e..40d8c93aea 100644 --- a/frameworks/aegon/main.cpp +++ b/frameworks/aegon/main.cpp @@ -209,7 +209,37 @@ void register_routes(Router& router) { // 8. WebSocket Echo endpoint router.ws("/ws"); - // 9. gRPC BenchmarkService (unary-grpc, unary-grpc-tls) + // 9. Compliance routes (/spec and /spec/headers) + auto handle_spec_text = [](Context& ctx) { + ctx.res().text("spec ok"); + }; + router.get("/spec", handle_spec_text); + router.add_route(Method::HEAD, "/spec", handle_spec_text); + router.add_route(Method::OPTIONS, "/spec", [](Context& ctx) { + (void)ctx.req().body(); + ctx.res().status(StatusCode::Ok) + .header("Allow", "GET, HEAD, POST, OPTIONS") + .body_view(""); + }); + router.post("/spec", [](Context& ctx) { + ctx.res().header("Content-Type", "application/octet-stream"); + ctx.res().body_view(ctx.req().body()); + }); + auto handle_spec_headers = [](Context& ctx) { + (void)ctx.req().body(); + std::string out; + for (const auto& h : ctx.req().headers()) { + out.append(h.name); + out.append(": "); + out.append(h.value); + out.push_back('\n'); + } + ctx.res().text(out); + }; + router.get("/spec/headers", handle_spec_headers); + router.post("/spec/headers", handle_spec_headers); + + // 10. gRPC BenchmarkService (unary-grpc, unary-grpc-tls) auto grpc_svc = router.grpc_service("/benchmark.BenchmarkService"); grpc_svc.unary("GetSum", [](grpc::UnaryContext& ctx) { benchmark::SumReply reply; @@ -335,18 +365,17 @@ int main() { server.h2_initial_window_size(1048576); register_routes(server.router()); - // Port 8080: Plaintext HTTP/1.1 (main benchmarks) - server.listen(8080); - // Port 8082: Plaintext HTTP/2 prior-knowledge (baseline-h2c, json-h2c) - server.listen(8082); + // Port 8080: Plaintext HTTP/1.1 + WS + h2c (baseline, ws, unary-grpc) + server.listen(8080, Protocol::H1 | Protocol::H2c); + // Port 8082: Strict cleartext HTTP/2 prior-knowledge (baseline-h2c, json-h2c) + server.listen(8082, Protocol::H2c); if (has_certs) { server.enable_tls(certFile, keyFile); - server.enable_http3(true); - // Port 8081: TLS HTTP/1.1 (json-tls, 8gbit) - server.listen_tls(8081); - // Port 8443: TLS HTTP/2 & HTTP/3 (baseline-h2, static-h2, baseline-h3, static-h3) - server.listen_tls(8443); + // Port 8081: TLS HTTP/1.1 only (json-tls, 8gbit, static-tls, connections-1m-tls) + server.listen(8081, Protocol::H1Tls); + // Port 8443: TLS HTTP/2 & HTTP/3 QUIC (baseline-h2, static-h2, baseline-h3, static-h3, unary-grpc-tls) + server.listen(8443, Protocol::H2 | Protocol::H3); } server.run(threads); diff --git a/frameworks/aegon/meta.json b/frameworks/aegon/meta.json index 04b57f2f4e..8176ad6953 100644 --- a/frameworks/aegon/meta.json +++ b/frameworks/aegon/meta.json @@ -38,6 +38,12 @@ "echo-ws-pipeline", "echo-ws-limited" ], + "spec": [ + "h1", + "h2", + "h3", + "ws" + ], "maintainers": [ "UdayKhare09" ] From d437be65dd850ec554d0220db75222de34444942 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Nov 2026 21:02:38 +0000 Subject: [PATCH 2/4] Spec results: aegon [skip ci] --- site/data/spec/aegon.json | 83 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 site/data/spec/aegon.json diff --git a/site/data/spec/aegon.json b/site/data/spec/aegon.json new file mode 100644 index 0000000000..ca9361cbaa --- /dev/null +++ b/site/data/spec/aegon.json @@ -0,0 +1,83 @@ +{ + "framework": "aegon", + "dir": "aegon", + "suites": { + "h1": { + "tool": "http11probe", + "version": "d50d818", + "passed": 159, + "total": 159, + "warnings": 10, + "failed": [] + }, + "h2": { + "tool": "h2spec", + "version": "2.6.0", + "passed": 145, + "total": 146, + "failed": [ + { + "id": "http2/5.1/8", + "test": "closed: Sends a DATA frame after sending RST_STREAM frame", + "expected": "GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed", + "got": "Timeout" + } + ], + "listeners": { + "tls": { + "passed": 146, + "total": 146, + "failed": [] + }, + "h2c": { + "passed": 145, + "total": 146, + "failed": [ + { + "id": "http2/5.1/8", + "test": "closed: Sends a DATA frame after sending RST_STREAM frame", + "expected": "GOAWAY Frame (Error Code: STREAM_CLOSED) or RST_STREAM Frame (Error Code: STREAM_CLOSED) or Connection closed", + "got": "Timeout" + } + ] + } + } + }, + "h3": { + "tool": "h3spec", + "version": "v0.1.15", + "passed": 80, + "total": 85, + "failed": [ + { + "id": "HTTP/3 servers treats a repeated setting identifier as an error whatever its value [HTTP/3 7.2.4]", + "got": "did not get expected exception: QUICException" + }, + { + "id": "HTTP/3 servers MUST send H3_ID_ERROR if CANCEL_PUSH names a push ID not allowed [HTTP/3 7.2.3]", + "got": "predicate failed on expected exception: QUICException / ApplicationProtocolErrorIsReceived (ApplicationProtocolError 261) \"\"" + }, + { + "id": "HTTP/3 servers MUST send H3_ID_ERROR if MAX_PUSH_ID goes down [HTTP/3 7.2.7]", + "got": "predicate failed on expected exception: QUICException / ApplicationProtocolErrorIsReceived (ApplicationProtocolError 262) \"\"" + }, + { + "id": "HTTP/3 servers MUST send H3_FRAME_ERROR if MAX_PUSH_ID has octets after its push ID [HTTP/3 7.1]", + "got": "did not get expected exception: QUICException" + }, + { + "id": "HTTP/3 servers MUST NOT buffer an over-long frame on a control stream [HTTP/3 7.1]", + "got": "did not get expected exception: QUICException" + } + ] + }, + "ws": { + "tool": "autobahn-testsuite", + "version": "25.10.1", + "passed": 244, + "total": 244, + "non_strict": 2, + "failed": [] + } + } +} From cef79528a61d1d341b28c886bb60ac9290bc401d Mon Sep 17 00:00:00 2001 From: Uday Khare Date: Sat, 28 Nov 2026 02:44:57 +0530 Subject: [PATCH 3/4] aegon: bump AEGON_COMMIT to f947d60 for coalesced RST_STREAM+DATA fix --- frameworks/aegon/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/aegon/Dockerfile b/frameworks/aegon/Dockerfile index 5772972ee6..8bb3daffe5 100644 --- a/frameworks/aegon/Dockerfile +++ b/frameworks/aegon/Dockerfile @@ -18,7 +18,7 @@ RUN pacman -Syu --noconfirm --needed \ ARG AEGON_REPO=https://github.com/UdayKhare09/Aegon.git ARG AEGON_REF=main -ARG AEGON_COMMIT=f6c196b +ARG AEGON_COMMIT=f947d60 WORKDIR /src RUN echo "Building Aegon commit: ${AEGON_COMMIT}" && \ From 05d656777dcb217c1d4cf56091aa8ffecc54ea14 Mon Sep 17 00:00:00 2001 From: Uday Khare Date: Sun, 29 Nov 2026 01:53:43 +0530 Subject: [PATCH 4/4] aegon: bump AEGON_COMMIT to 4f0fbdb, enable LTO, and set ring/buffer pool entries --- frameworks/aegon/Dockerfile | 6 ++++-- frameworks/aegon/main.cpp | 15 ++------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/frameworks/aegon/Dockerfile b/frameworks/aegon/Dockerfile index 8bb3daffe5..8a2f0545dd 100644 --- a/frameworks/aegon/Dockerfile +++ b/frameworks/aegon/Dockerfile @@ -18,7 +18,7 @@ RUN pacman -Syu --noconfirm --needed \ ARG AEGON_REPO=https://github.com/UdayKhare09/Aegon.git ARG AEGON_REF=main -ARG AEGON_COMMIT=f947d60 +ARG AEGON_COMMIT=4f0fbdb WORKDIR /src RUN echo "Building Aegon commit: ${AEGON_COMMIT}" && \ @@ -29,6 +29,7 @@ RUN echo "Building Aegon commit: ${AEGON_COMMIT}" && \ WORKDIR /src/aegon-src RUN cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \ -DAEGON_BUILD_TESTS=OFF \ -DAEGON_BUILD_SAMPLES=OFF \ -DAEGON_BUILD_BENCHMARKS=OFF \ @@ -40,7 +41,8 @@ WORKDIR /app COPY CMakeLists.txt main.cpp ./ COPY proto/ ./proto/ RUN cmake -B build -G Ninja \ - -DCMAKE_BUILD_TYPE=Release && \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON && \ cmake --build build -j$(nproc) FROM archlinux:latest diff --git a/frameworks/aegon/main.cpp b/frameworks/aegon/main.cpp index 40d8c93aea..a48d757f36 100644 --- a/frameworks/aegon/main.cpp +++ b/frameworks/aegon/main.cpp @@ -346,20 +346,9 @@ int main() { const std::string keyFile = "/certs/server.key"; bool has_certs = std::filesystem::exists(certFile) && std::filesystem::exists(keyFile); - struct rlimit rl{}; - bool low_memlock = false; - if (getrlimit(RLIMIT_MEMLOCK, &rl) == 0 && rl.rlim_cur != RLIM_INFINITY && rl.rlim_cur < 64 * 1024 * 1024) { - low_memlock = true; - } - Server server; - if (low_memlock) { - server.ring_entries(256); - server.buffer_pool_entries(256); - } else { - server.ring_entries(2048); - server.buffer_pool_entries(512); - } + server.ring_entries(4096); + server.buffer_pool_entries(2048); server.tcp_nodelay(true); server.h2_max_concurrent_streams(2000); server.h2_initial_window_size(1048576);