Skip to content

PG-2513: Make client connected flag atomic#40

Open
dutow wants to merge 2 commits into
Percona-Lab:masterfrom
dutow:atomicconnected
Open

PG-2513: Make client connected flag atomic#40
dutow wants to merge 2 commits into
Percona-Lab:masterfrom
dutow:atomicconnected

Conversation

@dutow

@dutow dutow commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

This fixes a possible race as it can be used by multiple threads, e.g.

Also clean up the order of pointer cleanup and connected flag unset. The client code is still thread unsafe even with this change, but it at least makes the connected handling more consistent.

dutow added 2 commits July 1, 2026 14:08
This fixes a possible race as it can be used by multiple threads, e.g.

Also clean up the order of pointer cleanup and connected flag unset. The
client code is still thread unsafe even with this change, but it at
least makes the connected handling more consistent.
It had an overly defensive LLM style, when in reality it could be much
simpler.
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.

1 participant