Repository navigation
Conversation
|
🎉 Thanks for your first pull request to Floci! Your CI checks need a maintainer to approve them before they run. That is GitHub's standard gate on first-time contributors, not a problem with your PR — so if the checks look like they are doing nothing, that is why. Once a maintainer approves, CI and the compatibility suite start automatically. Nothing is needed from you in the meantime. While you wait, a couple of things that make review faster:
Come join us in Slack — it is the fastest way to reach maintainers if you get stuck, or want feedback on an approach before investing more time in it. |
wblazer
marked this pull request as ready for review
September 24, 2026 22:28
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
Node processes using mysql2 can stay alive after
connection.end()orpool.end()resolves against Floci's RDS proxy. The database closes its connection afterCOM_QUIT, but the proxy leaves the client socket open while waiting for the opposite relay thread to finish.Close both sockets when either MySQL relay ends, following this fork's existing PostgreSQL bridge cleanup pattern. This wakes the other relay and lets clients finish shutting down. Authentication and data forwarding are unchanged.
The Node compatibility suite provisions a real MariaDB instance through the AWS SDK, exercises transactions and pooled-connection reuse, and checks that standalone and pooled mysql2 child processes exit naturally after
.end(). There are no database mocks. A child that remains alive is killed at the timeout and fails the test.Upstream counterpart: floci-io#4357 (also a draft). This PR targets Alchemy's current fork without importing unrelated upstream changes.
Type of change
fix:)AWS Compatibility
The RDS control-plane API is unchanged. The fix propagates MySQL connection termination through the data-plane proxy rather than retaining an open client socket after backend EOF.
Checklist
./mvnw testpasses locally (full suite not run)Deployment