fix: mysql2 request isolation, forwarded-array loops, parent prototypes, reactor HTTP scheduling - #8778
Merged
Conversation
…es, reactor HTTP scheduling Lands #8765, #8767, #8768 and #8769. #8765 stops mysql2 prepared statements and pool transactions leaking state across requests: each SQL string and parameter vector lives in one owned request, a parameterless `query()` uses the text protocol, prepared statements are request-scoped, and registry-backed mutable connection references become serialized owned handles with safe close/release around in-flight work. #8767 admits arrays reached through one validated forwarding edge into version-stable indexed loops, canonicalizing the compiler-private local to the live array after the full header/fingerprint check. Per-iteration fingerprint guards are retained, so callback-driven growth or a GC still side-exits before the next effect, and invalid targets or longer chains fail closed to the generic loop. #8768 materializes ordinary parent prototypes. #8769 schedules HTTP and HTTPS accept loops through the reactor-owned async bridge, using the same path for Unix round-robin fd injection. Changelog fragments added for #8765, #8767 and #8769; none carried one or a skip-changelog label. No version bump.
This was referenced Aug 24, 2026
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (15)
📝 WalkthroughWalkthroughThe PR fixes MySQL request-state isolation, forwarded-array loop admission, HTTP and HTTPS reactor scheduling, and runtime function prototype resolution. It adds regression tests and test-only async shims for these changes. ChangesMySQL request isolation
Forwarded-array indexed loops
HTTP and WebSocket reactor scheduling
Runtime function prototype resolution
Estimated code review effort: 5 (Critical) | ~120 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Aug 24, 2026
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.
Lands #8765, #8767, #8768 and #8769.
query()uses the text protocol, prepared statements are request-scoped, and registry-backed mutable connection references become serialized owned handles with safe close/release around in-flight work.WebSocketServeronnode:httpfollowed by a plainfetch.Validation (on the merged result)
lint-job checkers passperry-runtime --lib(RUST_TEST_THREADS=1): 2674 passed, 0 failedperry-codegen --lib: 1230 passed, 0 failed (+1)perry-codegen --tests(all integration suites): 0 failuresperry-ext-mysql2 --lib: 10 passed, 0 failed — fix(mysql2): isolate prepared operations and pool transactions #8765's own subject suiteChangelog fragments added for #8765, #8767 and #8769 — none carried one or a
skip-changeloglabel. No version bump.Summary by CodeRabbit