Skip to content

Apply Netty configuration changes to subsequent connections - #2133

Merged
acogoluegnes merged 1 commit into
mainfrom
netty-configuration-changes-apply
Oct 19, 2026
Merged

acogoluegnes merged 1 commit into
mainfrom
netty-configuration-changes-apply

Conversation

@acogoluegnes

@acogoluegnes acogoluegnes commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The Netty frame handler factory was created on the first connection and cached for the lifetime of the connection factory. Any later change to the Netty configuration (TLS context, event loop group, customizers, enqueuing timeout) or to the connection timeout, socket configurator, and recovery settings was silently ignored for new connections. This is inconsistent with the blocking IO transport.

The Netty frame handler factory is now created for each connection, like the blocking IO one. Existing connections, including their recovery, keep using the factory they were created with.

ConnectionFactory#clone() also shared the Netty configuration with the original factory. The clone now gets its own copy.

The Netty frame handler factory was created on the first connection
and cached for the lifetime of the connection factory. Any later
change to the Netty configuration (TLS context, event loop group,
customizers, enqueuing timeout) or to the connection timeout, socket
configurator, and recovery settings was silently ignored for new
connections. This is inconsistent with the blocking IO transport.

The Netty frame handler factory is now created for each connection,
like the blocking IO one. Existing connections, including their
recovery, keep using the factory they were created with.

ConnectionFactory#clone() also shared the Netty configuration with
the original factory. The clone now gets its own copy.
@acogoluegnes acogoluegnes added this to the 5.38.0 milestone Oct 19, 2026
@acogoluegnes
acogoluegnes marked this pull request as ready for review October 19, 2026 08:24
@acogoluegnes
acogoluegnes merged commit 23ac8e8 into main Oct 19, 2026
7 of 9 checks passed
@acogoluegnes
acogoluegnes deleted the netty-configuration-changes-apply branch October 19, 2026 08:24
@acogoluegnes

Copy link
Copy Markdown
Contributor Author

@Mergifyio backport v5.x

@mergify

mergify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

backport v5.x

✅ Backports have been created

Details

Cherry-pick of 8e3ac43 has failed:

On branch mergify/bp/v5.x/pr-2133
Your branch is up to date with 'origin/v5.x'.

You are currently cherry-picking commit 8e3ac43.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/main/java/com/rabbitmq/client/ConnectionFactory.java
	both modified:   src/test/java/com/rabbitmq/client/test/ConnectionFactoryTest.java

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

acogoluegnes added a commit that referenced this pull request Oct 19, 2026
Apply Netty configuration changes to subsequent connections (backport #2133)
@acogoluegnes acogoluegnes removed this from the 5.38.0 milestone Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant