Skip to content

perf(http): add event-driven Windows libcurl reactor - #323

Merged
MisterVVP merged 20 commits into
release/v0.6.0from
perf/windows-curl-readiness-232
Nov 6, 2026
Merged

MisterVVP merged 20 commits into
release/v0.6.0from
perf/windows-curl-readiness-232

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Refs #232; combines its four checkpoints in one PR targeting release/v0.6.0.

Windows outbound libcurl requests now use WSAPoll, a coalesced TCP wake connection and steady-clock deadlines. Socket generations discard stale readiness, and orderly EOF drains buffered response data. New connections start between readiness/cancellation turns to prevent Winsock connection checks from delaying ready work. The existing CURLM ownership, bounded shard/dispatch pools and public APIs are preserved.

Regression coverage includes timers, wakeups, cancellation/completion/shutdown races, 96 simultaneous transfers on one reactor, and HTTP+JSON/JSON-RPC streaming. Windows CI compares prebuilt native/fallback binaries in both execution orders and provisions enough TCP ports for the 28,320-stream workload.

The release branch also needs the A2A 1.0.1 protocol corrections shared with #324: HTTP+JSON media types, HTTP/gRPC error bindings and SUT input-media validation. Protocol strings are centralized across the touched transports, benchmark tooling and fixtures. Wire values and benchmark budgets are preserved, and test expectations remain independent.

Validation:

  • SDK CI passed, including Windows, both macOS builds, sanitizers, interoperability and coverage.
  • Native benchmark reports pass strict and cloud budgets in both orders, with all 28,320 samples and zero errors. Earlier native attempts occasionally missed the strict 16-stream startup budget; latency remains dependent on libcurl, Winsock and runner scheduling.
  • Local canonical verification: 781 registered checks, with three expected skips; formatting, explicit clang-tidy, mdBook, dependency audit and all 54 performance-smoke scenarios pass. The callback gRPC regression suite also passes all 35 checks.
  • Windows build and comparison instructions.

Unmodified upstream TCK at 104a7b4ae0d83f65c075e3793e322953a830eaba reports 242 passed, 4 failed, 17 skipped. Remaining upstream defects are CORE-SEND-003's missing expected error and the legacy Content-Type assertion. TCK runs without local assertion patches or skipped failures.

Authorship: generated by an AI agent.

@MisterVVP MisterVVP added the AI agent AI agent contribution label Nov 1, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Nov 1, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

Pending manual verification on windows

@MisterVVP MisterVVP added the performance Performance improvement related tasks based on benchmark results. Performance tests changes. label Nov 2, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

Done. @codex review this PR now

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T22:00:02.634885Z ed66438 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 28c8a86759

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP

Copy link
Copy Markdown
Owner Author

Determine the cause of the 96-stream first-event regression, fix it if practical, and otherwise document a justified performance trade-off.

@MisterVVP
MisterVVP marked this pull request as draft November 3, 2026 12:15
@MisterVVP
MisterVVP marked this pull request as ready for review November 5, 2026 22:21
Accept the protocol HTTP+JSON media type while retaining legacy JSON requests,
correct domain error bindings, and enforce the SUT's advertised input modes.
Pin the current TCK revision and correct its two contradictory assertions
without changing requirement scoring or skipping tests.
Run upstream main without modifying its assertions, preserving its failure
results while the upstream defects are resolved. Keep the SDK binding fixes
and document the known unmodified-suite failures.
@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 082aede701

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread book/src/compatibility/conformance.md Resolved
Comment thread src/server/transport/rest_transport.cpp Resolved
@MisterVVP

Copy link
Copy Markdown
Owner Author

@codex review this PR

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: ed66438408

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MisterVVP
MisterVVP merged commit 377375c into release/v0.6.0 Nov 6, 2026
21 of 22 checks passed
@MisterVVP
MisterVVP deleted the perf/windows-curl-readiness-232 branch November 6, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution performance Performance improvement related tasks based on benchmark results. Performance tests changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant