Skip to content

Prevent concurrent uses of #ping and #close#1436

Open
byroot wants to merge 2 commits into
brianmario:masterfrom
byroot:ping-close-lock
Open

Prevent concurrent uses of #ping and #close#1436
byroot wants to merge 2 commits into
brianmario:masterfrom
byroot:ping-close-lock

Conversation

@byroot
Copy link
Copy Markdown
Contributor

@byroot byroot commented Apr 25, 2026

Fix: #1433

Apply the same locking mechanism #query uses to these two methods.

@bquorning
Copy link
Copy Markdown

There has been a lot of CI changes to the repo recently, so maybe a rebase on master would cause CI to pass?

It's disabled by default in MySQL 8.4, and entirely removed in 9.0
@byroot byroot force-pushed the ping-close-lock branch from 65d5872 to 2c76838 Compare May 4, 2026 08:35
@byroot
Copy link
Copy Markdown
Contributor Author

byroot commented May 4, 2026

Looks like it's worse after a rebase.

@byroot byroot force-pushed the ping-close-lock branch 3 times, most recently from c07489d to 10ccf8b Compare May 4, 2026 08:55
@bquorning
Copy link
Copy Markdown

But aren't all the test failures related to .close behavior now? I thought they were related to your changes.

@byroot byroot force-pushed the ping-close-lock branch 4 times, most recently from 6ee5137 to ac574fa Compare May 4, 2026 09:31
Fix: brianmario#1433

Apply the same locking mecanism `#query` uses to these two methods.
@byroot byroot force-pushed the ping-close-lock branch from ac574fa to 0d08a61 Compare May 4, 2026 09:32
@byroot
Copy link
Copy Markdown
Contributor Author

byroot commented May 4, 2026

Right, the test suite was actually riddled with concurrent closing of connections held by still live threads. I cleaned all that up. It's now green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants