Skip to content

Refactor the free connection buffer - #169

Closed
foc-nico wants to merge 3 commits into
ebean-orm:mainfrom
FOCONIS:refactor/free-connection-buffer
Closed

foc-nico wants to merge 3 commits into
ebean-orm:mainfrom
FOCONIS:refactor/free-connection-buffer

Conversation

@foc-nico

Copy link
Copy Markdown

Motivation

Replace the LinkedList backing the free connection buffer with an internal linked list. This prepares the buffer for a follow-up that will use the same list structure for busy connections, while keeping that change and connection affinity out of this PR.

Rename FreeConnectionBuffer to ConnectionBuffer and update the queue and existing tests. The buffer still returns trimmed connections to the queue, which closes them once, outside the queue lock.

rPraml and others added 3 commits November 20, 2026 14:38
The queue already closes trimmed connections after releasing its lock. Do not close them twice when porting the linked-list buffer.
@foc-nico foc-nico closed this Nov 20, 2026
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