Skip to content

[5.19.x] SSL handshake write timeout enforcement (#1883)#1896

Merged
jeanouii merged 1 commit intoapache:activemq-5.19.xfrom
cshannon:backport-1883-5.19.x
Apr 10, 2026
Merged

[5.19.x] SSL handshake write timeout enforcement (#1883)#1896
jeanouii merged 1 commit intoapache:activemq-5.19.xfrom
cshannon:backport-1883-5.19.x

Conversation

@cshannon
Copy link
Copy Markdown
Contributor

@cshannon cshannon commented Apr 9, 2026

Adding a null check in the TimeoutThread is required to avoid random NPE if the TimeoutThread kicks in after the registerWrite but before initializeStreams() is called resulting in a NPE because TcpTransport.buffOut is null.

(cherry picked from commit 2fee158)

…he#1883)

* feat(AMQ-9559)/feat(apache#1882): The failover test correctly reproduces the bug: it blocks for 20+ seconds proving WriteTimeoutFilter.start() does not enforce soWriteTimeout.

* feat(AMQ-9559)/feat(apache#1882): Similar to oneway() add registerWrite/deRegisterWrite around super.start()

Adding a null check in the TimeoutThread is required to avoid random NPE if the TimeoutThread kicks in after the registerWrite but before initializeStreams() is called resulting in a NPE because TcpTransport.buffOut is null.

(cherry picked from commit 2fee158)
@cshannon cshannon requested a review from jbonofre April 9, 2026 20:09
@jeanouii jeanouii merged commit 74b568e into apache:activemq-5.19.x Apr 10, 2026
@github-project-automation github-project-automation bot moved this from Todo to Done in Apache ActiveMQ v5.19.6 Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

2 participants