Repository navigation
Conversation
Select standalone Asio for the performance SUT while preserving the blocking TCK server. Add bounded incremental I/O, stream readiness and cancellation, diagnostic reset coordination, socket regressions and benchmark evidence. AI-generated implementation under maintainer direction. Low-concurrency finite-SSE throughput remains outside the published tolerance; submit as draft.
Send FIN before draining pending receive operations, bounded by a two-second close deadline. Keep admission charged until cleanup and cancel draining on server shutdown. Require complete unary/finite replies and clean EOF in socket regressions; cover unread pipelines and deadline-based admission release.
Owner
Author
|
This change is larger than intended. |
12 of 13 tasks
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
The performance SUT currently uses blocking HTTP sockets, a thread per connection, and a polling accept loop. This change selects a standalone-Asio implementation with one I/O loop, four fixed application workers, bounded connection/input/output admission, and resumable HTTP+JSON/JSON-RPC streaming. The TCK SUT continues selecting its existing blocking server.
The shared incremental parser and response encoder preserve blocking callers. Readiness callbacks, bounded subscriber queues, serialized cleanup, and a reset admission barrier preserve stream reuse, cancellation, shutdown, and diagnostic counter meaning. Native CI exercises the new socket suite on Linux/macOS/Windows, with HTTP-only coverage in the sanitizer jobs.
Normal response closure sends FIN before draining the receive side, with a two-second deadline and immediate cancellation on server shutdown. This fixes Winsock resets when closing canceled a pending receive. New regressions require complete unary/finite responses followed by clean EOF, cover unread pipelines, and prove that close deadlines release bounded admission.
Closes #277 when the remaining performance acceptance gap is resolved. This PR is draft because the longer comparison confirms a low-concurrency finite-SSE throughput regression.
Performance evidence
Architecture and benchmark evidence include reproduction commands, raw before/after samples, hardware/build/store settings, fixed tolerances, and CPU/RSS/thread measurements.
Authorship and AI usage
Implementation, tests, configuration, documentation, and measurements were produced by OpenAI Codex under maintainer direction.
Testing
clang-format --dry-run --Werrormechanism,./scripts/verify_changes.sh, and separate./scripts/run_clang_tidy.sh build: exit 0. Native Debug build has PostgreSQL and subscription diagnostics enabled; all 671 tests pass.The requester explicitly waived the existing 80.9% TCK compliance gate. A full TCK run is not claimed; blocking SUT selection and binary diagnostic-symbol isolation are covered by native regressions. Native Linux and macOS CI jobs pass. Windows MSVC compilation and the native test step also pass in the linked follow-up run.
Local lint runs the real clang-tidy 19 executable in parallel and reuses successful checks only when compiler commands, configuration, source, and dependency headers are identical.
Checklist
./scripts/verify_changes.shpassed locally